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.
This commit is contained in:
Tim Almdal
2009-07-27 12:39:12 -07:00
parent b3fe70e654
commit 1f014aae6c
12 changed files with 66 additions and 44 deletions
@@ -40,7 +40,7 @@
$(".gProgressBar").progressbar({value: 0});
update();
dismiss = function() {
window.location.reload();
$.gallery_reload();
}
</script>
<div id="gProgress">