remove ajaxify.widgets.reposition

v1.18.x
Baris Usakli 8 years ago
parent bece6808a2
commit 4e7447c9d6

@ -3,16 +3,6 @@
(function (ajaxify) { (function (ajaxify) {
ajaxify.widgets = {}; 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) { ajaxify.widgets.render = function (template, callback) {
callback = callback || function () {}; callback = callback || function () {};
@ -56,7 +46,6 @@
if (widgetsAtLocation.length) { if (widgetsAtLocation.length) {
area.removeClass('hidden'); area.removeClass('hidden');
ajaxify.widgets.reposition(location);
} }
}); });

Loading…
Cancel
Save