Files
gallery3/lib/gallery.reload.js
Tim Almdal 1f014aae6c 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.
2009-07-27 12:39:12 -07:00

17 lines
354 B
JavaScript

/**
* 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);