From 6dbe0dfbd02f1be6c2e25e1916cd26b627076cef Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 12 Mar 2010 22:00:35 -0500 Subject: Fixed & admin panel bug In the admin panel, many (if not all) dynamic links use AJAX to POST a page. These all contained & in the URL, which didn't resolve to & as it should. These have all been replaced. --- theme/admin/comments.tpl | 8 ++++---- theme/admin/drafts.tpl | 4 ++-- theme/admin/links.tpl | 4 ++-- theme/admin/modquotes.tpl | 8 ++++---- theme/admin/pending.tpl | 4 ++-- theme/admin/polls.tpl | 4 ++-- theme/admin/posts.tpl | 4 ++-- theme/admin/quotes.tpl | 4 ++-- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/theme/admin/comments.tpl b/theme/admin/comments.tpl index 6d9f815..5d1da21 100755 --- a/theme/admin/comments.tpl +++ b/theme/admin/comments.tpl @@ -7,13 +7,13 @@ function denyComment(id) { if (confirm("Are you sure you would like to deny this comment?")) { - postwith("/admin/comments.php?pageID=&action=deny",{id:id}); + postwith("/admin/comments.php?pageID=&action=deny",{id:id}); } } function approveComment(id) { - postwith("/admin/comments.php?pageID=&action=approve",{id:id}); + postwith("/admin/comments.php?pageID=&action=approve",{id:id}); } // following function taken from http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/ @@ -46,13 +46,13 @@ function bulkAction() { if (confirm("Are you sure you would like to deny the selected comments?")) { - postwith("/admin/comments.php?pageID=&action=denys",{ids:ids}); + postwith("/admin/comments.php?pageID=&action=denys",{ids:ids}); } } else if ($('#manage-bulk select').val() == "approve") { if (confirm("Are you sure you would like to approve the selected comments?")) { - postwith("/admin/comments.php?pageID=&action=approves",{ids:ids}); + postwith("/admin/comments.php?pageID=&action=approves",{ids:ids}); } } } diff --git a/theme/admin/drafts.tpl b/theme/admin/drafts.tpl index 17757ba..e798fd9 100755 --- a/theme/admin/drafts.tpl +++ b/theme/admin/drafts.tpl @@ -7,7 +7,7 @@ function deletePost(id) { if (confirm("Are you sure you would like to delete this draft?")) { - postwith("/admin/drafts.php?pageID=&action=delete",{id:id}); + postwith("/admin/drafts.php?pageID=&action=delete",{id:id}); } } @@ -41,7 +41,7 @@ function bulkAction() { if (confirm("Are you sure you would like to delete the selected drafts?")) { - postwith("/admin/drafts.php?pageID=&action=deletes",{ids:ids}); + postwith("/admin/drafts.php?pageID=&action=deletes",{ids:ids}); } } } diff --git a/theme/admin/links.tpl b/theme/admin/links.tpl index d666f61..f245a25 100755 --- a/theme/admin/links.tpl +++ b/theme/admin/links.tpl @@ -7,7 +7,7 @@ function deleteLink(id) { if (confirm("Are you sure you would like to delete this link?")) { - postwith("/admin/links.php?pageID=&action=delete",{id:id}); + postwith("/admin/links.php?pageID=&action=delete",{id:id}); } } @@ -41,7 +41,7 @@ function bulkAction() { if (confirm("Are you sure you would like to delete the selected links?")) { - postwith("/admin/links.php?pageID=&action=deletes",{ids:ids}); + postwith("/admin/links.php?pageID=&action=deletes",{ids:ids}); } } } diff --git a/theme/admin/modquotes.tpl b/theme/admin/modquotes.tpl index 545a171..016f7a5 100755 --- a/theme/admin/modquotes.tpl +++ b/theme/admin/modquotes.tpl @@ -7,13 +7,13 @@ function denyQuote(id) { if (confirm("Are you sure you would like to deny this quote?")) { - postwith("/admin/modquotes.php?pageID=&action=deny",{id:id}); + postwith("/admin/modquotes.php?pageID=&action=deny",{id:id}); } } function approveQuote(id) { - postwith("/admin/modquotes.php?pageID=&action=approve",{id:id}); + postwith("/admin/modquotes.php?pageID=&action=approve",{id:id}); } // following function taken from http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/ @@ -46,13 +46,13 @@ function bulkAction() { if (confirm("Are you sure you would like to deny the selected quotes?")) { - postwith("/admin/modquotes.php?pageID=&action=denys",{ids:ids}); + postwith("/admin/modquotes.php?pageID=&action=denys",{ids:ids}); } } else if ($('#manage-bulk select').val() == "approve") { if (confirm("Are you sure you would like to approve the selected quotes?")) { - postwith("/admin/modquotes.php?pageID=&action=approves",{ids:ids}); + postwith("/admin/modquotes.php?pageID=&action=approves",{ids:ids}); } } } diff --git a/theme/admin/pending.tpl b/theme/admin/pending.tpl index 8ead332..32c15b0 100755 --- a/theme/admin/pending.tpl +++ b/theme/admin/pending.tpl @@ -7,7 +7,7 @@ function deletePost(id) { if (confirm("Are you sure you would like to delete this pending post?")) { - postwith("/admin/pending.php?pageID=&action=delete",{id:id}); + postwith("/admin/pending.php?pageID=&action=delete",{id:id}); } } @@ -41,7 +41,7 @@ function bulkAction() { if (confirm("Are you sure you would like to delete the selected posts?")) { - postwith("/admin/pending.php?pageID=&action=deletes",{ids:ids}); + postwith("/admin/pending.php?pageID=&action=deletes",{ids:ids}); } } } diff --git a/theme/admin/polls.tpl b/theme/admin/polls.tpl index feb3600..81613a9 100755 --- a/theme/admin/polls.tpl +++ b/theme/admin/polls.tpl @@ -7,7 +7,7 @@ function deletePoll(id) { if (confirm("Are you sure you would like to delete this poll?")) { - postwith("/admin/polls.php?pageID=&action=delete",{id:id}); + postwith("/admin/polls.php?pageID=&action=delete",{id:id}); } } @@ -41,7 +41,7 @@ function bulkAction() { if (confirm("Are you sure you would like to delete the selected polls?")) { - postwith("/admin/polls.php?pageID=&action=deletes",{ids:ids}); + postwith("/admin/polls.php?pageID=&action=deletes",{ids:ids}); } } } diff --git a/theme/admin/posts.tpl b/theme/admin/posts.tpl index c68f5fd..676d789 100755 --- a/theme/admin/posts.tpl +++ b/theme/admin/posts.tpl @@ -7,7 +7,7 @@ function deletePost(id) { if (confirm("Are you sure you would like to delete this post?")) { - postwith("/admin/posts.php?pageID=&action=delete",{id:id}); + postwith("/admin/posts.php?pageID=&action=delete",{id:id}); } } @@ -41,7 +41,7 @@ function bulkAction() { if (confirm("Are you sure you would like to delete the selected posts?")) { - postwith("/admin/posts.php?pageID=&action=deletes",{ids:ids}); + postwith("/admin/posts.php?pageID=&action=deletes",{ids:ids}); } } } diff --git a/theme/admin/quotes.tpl b/theme/admin/quotes.tpl index 6da9dbb..7828e84 100755 --- a/theme/admin/quotes.tpl +++ b/theme/admin/quotes.tpl @@ -7,7 +7,7 @@ function deleteQuote(id) { if (confirm("Are you sure you would like to delete this quote?")) { - postwith("/admin/quotes.php?pageID=&action=delete",{id:id}); + postwith("/admin/quotes.php?pageID=&action=delete",{id:id}); } } @@ -41,7 +41,7 @@ function bulkAction() { if (confirm("Are you sure you would like to delete the selected quotes?")) { - postwith("/admin/quotes.php?pageID=&action=deletes",{ids:ids}); + postwith("/admin/quotes.php?pageID=&action=deletes",{ids:ids}); } } } -- cgit 1.4.1