mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 19:39:16 -04:00
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.
17 lines
354 B
JavaScript
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);
|