summaryrefslogtreecommitdiff
path: root/modules/tag
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-27 12:39:12 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-27 12:39:12 -0700
commit1f014aae6c16bbda62d8f5937180f11ccb0eb1b1 (patch)
tree9fa6c27716b14424c5c223299ffaa45f688ad620 /modules/tag
parentb3fe70e654c1519f8f1d54a80f99d0af7a8f2e49 (diff)
Allow a theme to override the page refresh mechanism. Create a new
javascript lib (gallery.reload.js) which defines the functions gallery_reload() and gallery_location(new_location). They just do a window.location.reload() and window.location = new_location. This change breaks the assumption that all themes will handle page reloads the same and allows the theme to customize the page refresh.
Diffstat (limited to 'modules/tag')
-rw-r--r--modules/tag/js/tag.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js
index bbf44166..22a1a7a3 100644
--- a/modules/tag/js/tag.js
+++ b/modules/tag/js/tag.js
@@ -59,7 +59,7 @@ function editInPlace(element) {
closeEditInPlaceForms(); // close form
$("#gTag-" + data.tag_id).text(data.new_tagname); // update tagname
console.log(data);
- window.location.reload();
+ $.gallery_reload();
}
}
});