summary refs log tree commit diff stats
path: root/theme
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2010-03-12 22:00:35 -0500
committerStarla Insigna <hatkirby@fourisland.com>2010-03-12 22:00:35 -0500
commit6dbe0dfbd02f1be6c2e25e1916cd26b627076cef (patch)
treeb13313f49a722f970c3c6c0fd2f0d8ed899a921b /theme
parent47bfbec81bfaf3314018d3100d678ee37af88b2b (diff)
downloadfourisland-6dbe0dfbd02f1be6c2e25e1916cd26b627076cef.tar.gz
fourisland-6dbe0dfbd02f1be6c2e25e1916cd26b627076cef.tar.bz2
fourisland-6dbe0dfbd02f1be6c2e25e1916cd26b627076cef.zip
Fixed &amp; admin panel bug
In the admin panel, many (if not all) dynamic links use AJAX to POST a page. These all contained &amp; in the URL, which didn't resolve to & as it should.
These have all been replaced.
Diffstat (limited to 'theme')
-rwxr-xr-xtheme/admin/comments.tpl8
-rwxr-xr-xtheme/admin/drafts.tpl4
-rwxr-xr-xtheme/admin/links.tpl4
-rwxr-xr-xtheme/admin/modquotes.tpl8
-rwxr-xr-xtheme/admin/pending.tpl4
-rwxr-xr-xtheme/admin/polls.tpl4
-rwxr-xr-xtheme/admin/posts.tpl4
-rwxr-xr-xtheme/admin/quotes.tpl4
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)
7{ 7{
8 if (confirm("Are you sure you would like to deny this comment?")) 8 if (confirm("Are you sure you would like to deny this comment?"))
9 { 9 {
10 postwith("/admin/comments.php?pageID=<!--PAGEID-->&amp;action=deny",{id:id}); 10 postwith("/admin/comments.php?pageID=<!--PAGEID-->&action=deny",{id:id});
11 } 11 }
12} 12}
13 13
14function approveComment(id) 14function approveComment(id)
15{ 15{
16 postwith("/admin/comments.php?pageID=<!--PAGEID-->&amp;action=approve",{id:id}); 16 postwith("/admin/comments.php?pageID=<!--PAGEID-->&action=approve",{id:id});
17} 17}
18 18
19// following function taken from http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/ 19// following function taken from http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/
@@ -46,13 +46,13 @@ function bulkAction()
46 { 46 {
47 if (confirm("Are you sure you would like to deny the selected comments?")) 47 if (confirm("Are you sure you would like to deny the selected comments?"))
48 { 48 {
49 postwith("/admin/comments.php?pageID=<!--PAGEID-->&amp;action=denys",{ids:ids}); 49 postwith("/admin/comments.php?pageID=<!--PAGEID-->&action=denys",{ids:ids});
50 } 50 }
51 } else if ($('#manage-bulk select').val() == "approve") 51 } else if ($('#manage-bulk select').val() == "approve")
52 { 52 {
53 if (confirm("Are you sure you would like to approve the selected comments?")) 53 if (confirm("Are you sure you would like to approve the selected comments?"))
54 { 54 {
55 postwith("/admin/comments.php?pageID=<!--PAGEID-->&amp;action=approves",{ids:ids}); 55 postwith("/admin/comments.php?pageID=<!--PAGEID-->&action=approves",{ids:ids});
56 } 56 }
57 } 57 }
58 } 58 }
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)
7{ 7{
8 if (confirm("Are you sure you would like to delete this draft?")) 8 if (confirm("Are you sure you would like to delete this draft?"))
9 { 9 {
10 postwith("/admin/drafts.php?pageID=<!--PAGEID-->&amp;action=delete",{id:id}); 10 postwith("/admin/drafts.php?pageID=<!--PAGEID-->&action=delete",{id:id});
11 } 11 }
12} 12}
13 13
@@ -41,7 +41,7 @@ function bulkAction()
41 { 41 {
42 if (confirm("Are you sure you would like to delete the selected drafts?")) 42 if (confirm("Are you sure you would like to delete the selected drafts?"))
43 { 43 {
44 postwith("/admin/drafts.php?pageID=<!--PAGEID-->&amp;action=deletes",{ids:ids}); 44 postwith("/admin/drafts.php?pageID=<!--PAGEID-->&action=deletes",{ids:ids});
45 } 45 }
46 } 46 }
47 } 47 }
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)
7{ 7{
8 if (confirm("Are you sure you would like to delete this link?")) 8 if (confirm("Are you sure you would like to delete this link?"))
9 { 9 {
10 postwith("/admin/links.php?pageID=<!--PAGEID-->&amp;action=delete",{id:id}); 10 postwith("/admin/links.php?pageID=<!--PAGEID-->&action=delete",{id:id});
11 } 11 }
12} 12}
13 13
@@ -41,7 +41,7 @@ function bulkAction()
41 { 41 {
42 if (confirm("Are you sure you would like to delete the selected links?")) 42 if (confirm("Are you sure you would like to delete the selected links?"))
43 { 43 {
44 postwith("/admin/links.php?pageID=<!--PAGEID-->&amp;action=deletes",{ids:ids}); 44 postwith("/admin/links.php?pageID=<!--PAGEID-->&action=deletes",{ids:ids});
45 } 45 }
46 } 46 }
47 } 47 }
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)
7{ 7{
8 if (confirm("Are you sure you would like to deny this quote?")) 8 if (confirm("Are you sure you would like to deny this quote?"))
9 { 9 {
10 postwith("/admin/modquotes.php?pageID=<!--PAGEID-->&amp;action=deny",{id:id}); 10 postwith("/admin/modquotes.php?pageID=<!--PAGEID-->&action=deny",{id:id});
11 } 11 }
12} 12}
13 13
14function approveQuote(id) 14function approveQuote(id)
15{ 15{
16 postwith("/admin/modquotes.php?pageID=<!--PAGEID-->&amp;action=approve",{id:id}); 16 postwith("/admin/modquotes.php?pageID=<!--PAGEID-->&action=approve",{id:id});
17} 17}
18 18
19// following function taken from http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/ 19// following function taken from http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/
@@ -46,13 +46,13 @@ function bulkAction()
46 { 46 {
47 if (confirm("Are you sure you would like to deny the selected quotes?")) 47 if (confirm("Are you sure you would like to deny the selected quotes?"))
48 { 48 {
49 postwith("/admin/modquotes.php?pageID=<!--PAGEID-->&amp;action=denys",{ids:ids}); 49 postwith("/admin/modquotes.php?pageID=<!--PAGEID-->&action=denys",{ids:ids});
50 } 50 }
51 } else if ($('#manage-bulk select').val() == "approve") 51 } else if ($('#manage-bulk select').val() == "approve")
52 { 52 {
53 if (confirm("Are you sure you would like to approve the selected quotes?")) 53 if (confirm("Are you sure you would like to approve the selected quotes?"))
54 { 54 {
55 postwith("/admin/modquotes.php?pageID=<!--PAGEID-->&amp;action=approves",{ids:ids}); 55 postwith("/admin/modquotes.php?pageID=<!--PAGEID-->&action=approves",{ids:ids});
56 } 56 }
57 } 57 }
58 } 58 }
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)
7{ 7{
8 if (confirm("Are you sure you would like to delete this pending post?")) 8 if (confirm("Are you sure you would like to delete this pending post?"))
9 { 9 {
10 postwith("/admin/pending.php?pageID=<!--PAGEID-->&amp;action=delete",{id:id}); 10 postwith("/admin/pending.php?pageID=<!--PAGEID-->&action=delete",{id:id});
11 } 11 }
12} 12}
13 13
@@ -41,7 +41,7 @@ function bulkAction()
41 { 41 {
42 if (confirm("Are you sure you would like to delete the selected posts?")) 42 if (confirm("Are you sure you would like to delete the selected posts?"))
43 { 43 {
44 postwith("/admin/pending.php?pageID=<!--PAGEID-->&amp;action=deletes",{ids:ids}); 44 postwith("/admin/pending.php?pageID=<!--PAGEID-->&action=deletes",{ids:ids});
45 } 45 }
46 } 46 }
47 } 47 }
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)
7{ 7{
8 if (confirm("Are you sure you would like to delete this poll?")) 8 if (confirm("Are you sure you would like to delete this poll?"))
9 { 9 {
10 postwith("/admin/polls.php?pageID=<!--PAGEID-->&amp;action=delete",{id:id}); 10 postwith("/admin/polls.php?pageID=<!--PAGEID-->&action=delete",{id:id});
11 } 11 }
12} 12}
13 13
@@ -41,7 +41,7 @@ function bulkAction()
41 { 41 {
42 if (confirm("Are you sure you would like to delete the selected polls?")) 42 if (confirm("Are you sure you would like to delete the selected polls?"))
43 { 43 {
44 postwith("/admin/polls.php?pageID=<!--PAGEID-->&amp;action=deletes",{ids:ids}); 44 postwith("/admin/polls.php?pageID=<!--PAGEID-->&action=deletes",{ids:ids});
45 } 45 }
46 } 46 }
47 } 47 }
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)
7{ 7{
8 if (confirm("Are you sure you would like to delete this post?")) 8 if (confirm("Are you sure you would like to delete this post?"))
9 { 9 {
10 postwith("/admin/posts.php?pageID=<!--PAGEID-->&amp;action=delete",{id:id}); 10 postwith("/admin/posts.php?pageID=<!--PAGEID-->&action=delete",{id:id});
11 } 11 }
12} 12}
13 13
@@ -41,7 +41,7 @@ function bulkAction()
41 { 41 {
42 if (confirm("Are you sure you would like to delete the selected posts?")) 42 if (confirm("Are you sure you would like to delete the selected posts?"))
43 { 43 {
44 postwith("/admin/posts.php?pageID=<!--PAGEID-->&amp;action=deletes",{ids:ids}); 44 postwith("/admin/posts.php?pageID=<!--PAGEID-->&action=deletes",{ids:ids});
45 } 45 }
46 } 46 }
47 } 47 }
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)
7{ 7{
8 if (confirm("Are you sure you would like to delete this quote?")) 8 if (confirm("Are you sure you would like to delete this quote?"))
9 { 9 {
10 postwith("/admin/quotes.php?<!--FLAGGED-->pageID=<!--PAGEID-->&amp;action=delete",{id:id}); 10 postwith("/admin/quotes.php?<!--FLAGGED-->pageID=<!--PAGEID-->&action=delete",{id:id});
11 } 11 }
12} 12}
13 13
@@ -41,7 +41,7 @@ function bulkAction()
41 { 41 {
42 if (confirm("Are you sure you would like to delete the selected quotes?")) 42 if (confirm("Are you sure you would like to delete the selected quotes?"))
43 { 43 {
44 postwith("/admin/quotes.php?<!--FLAGGED-->pageID=<!--PAGEID-->&amp;action=deletes",{ids:ids}); 44 postwith("/admin/quotes.php?<!--FLAGGED-->pageID=<!--PAGEID-->&action=deletes",{ids:ids});
45 } 45 }
46 } 46 }
47 } 47 }