mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
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:
@@ -40,7 +40,7 @@
|
||||
$(".gProgressBar").progressbar({value: 0});
|
||||
update();
|
||||
dismiss = function() {
|
||||
window.location.reload();
|
||||
$.gallery_reload();
|
||||
}
|
||||
</script>
|
||||
<div id="gProgress">
|
||||
|
||||
Reference in New Issue
Block a user