mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
remove ajaxify.widgets.reposition
This commit is contained in:
@@ -3,16 +3,6 @@
|
||||
(function (ajaxify) {
|
||||
ajaxify.widgets = {};
|
||||
|
||||
ajaxify.widgets.reposition = function (location) {
|
||||
$('body [has-widget-class]').each(function () {
|
||||
var $this = $(this);
|
||||
if ($this.attr('has-widget-target') === location) {
|
||||
$this.removeClass();
|
||||
$this.addClass($this.attr('has-widget-class'));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
ajaxify.widgets.render = function (template, callback) {
|
||||
callback = callback || function () {};
|
||||
|
||||
@@ -56,7 +46,6 @@
|
||||
|
||||
if (widgetsAtLocation.length) {
|
||||
area.removeClass('hidden');
|
||||
ajaxify.widgets.reposition(location);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user