summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-08-05 09:24:27 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-08-05 09:24:27 -0700
commit9f396178cedc96abb282e72ff0e843e255c8225a (patch)
tree48c514bea04f4c5f07599086a8b79d99fcb70230 /lib
parent397468c47b8fc3fefeb54ff19a73980ed1dd8c20 (diff)
Revert "Allow a theme to override the page refresh mechanism. Create a new"
This reverts commit 1f014aae6c16bbda62d8f5937180f11ccb0eb1b1.
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.dialog.js4
-rw-r--r--lib/gallery.panel.js4
-rw-r--r--lib/gallery.reload.js16
3 files changed, 4 insertions, 20 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js
index 0efcf120..74c2f20e 100644
--- a/lib/gallery.dialog.js
+++ b/lib/gallery.dialog.js
@@ -25,9 +25,9 @@ function ajaxify_dialog() {
}
if (data.result == "success") {
if (data.location) {
- $.gallery_location(data.location);
+ window.location = data.location;
} else {
- $.gallery_reload();
+ window.location.reload();
}
}
}
diff --git a/lib/gallery.panel.js b/lib/gallery.panel.js
index 26be11ad..022e4878 100644
--- a/lib/gallery.panel.js
+++ b/lib/gallery.panel.js
@@ -40,9 +40,9 @@ function togglePanel(element, on_success) {
if (on_success) {
on_success();
} else if (data.location) {
- $.gallery_location(data.location);
+ window.location = data.location;
} else {
- $.gallery_reload();
+ window.location.reload();
}
}
}
diff --git a/lib/gallery.reload.js b/lib/gallery.reload.js
deleted file mode 100644
index 2c8752a0..00000000
--- a/lib/gallery.reload.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-(function ($) {
- $.gallery_reload = function() {
- window.location.reload();
- };
-})(jQuery);
-
-// Vertically align a block element's content
-(function ($) {
- $.gallery_location = function(location) {
- window.location = location;
- };
-})(jQuery);