fixed jquery ui package

v1.18.x
Baris Soner Usakli 11 years ago
parent 30eb85f96e
commit c49c3e3550

@ -22,6 +22,7 @@ var ajaxify = {};
window.onpopstate = function (event) { window.onpopstate = function (event) {
if (event !== null && event.state && event.state.url !== undefined && !ajaxify.initialLoad) { if (event !== null && event.state && event.state.url !== undefined && !ajaxify.initialLoad) {
ajaxify.go(event.state.url, null, true); ajaxify.go(event.state.url, null, true);
$(window).trigger('action:popstate', {url: event.state.url});
} }
}; };
@ -129,7 +130,7 @@ var ajaxify = {};
$this.addClass($this.attr('no-widget-class')); $this.addClass($this.attr('no-widget-class'));
}); });
} }
next(err); next(err);
}); });
}, function(err) { }, function(err) {

@ -2,6 +2,10 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
var Category = {}, var Category = {},
loadingMoreTopics = false; loadingMoreTopics = false;
$(window).on('action:popstate', function(ev, data) {
});
Category.init = function() { Category.init = function() {
var cid = templates.get('category_id'), var cid = templates.get('category_id'),
categoryName = templates.get('category_name'), categoryName = templates.get('category_name'),

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save