[fix] Restore top scroll with c.view

This commit is contained in:
ljf 2019-10-20 01:29:27 +02:00
parent 6fe0044adb
commit de5d61d64e
2 changed files with 4 additions and 2 deletions

View file

@ -50,7 +50,9 @@
model.groups[group].members.sort(); model.groups[group].members.sort();
model.groups[group].membersInv.sort(); model.groups[group].membersInv.sort();
} }
c.view('user/user_permission', model, function () {
var rendered = c.render('views/user/user_permission.ms', model);
rendered.swap(function () {
jQuery(".group-update").on('click', function (e) { jQuery(".group-update").on('click', function (e) {
updateGroup(model, jQuery(this)[0].dataset); updateGroup(model, jQuery(this)[0].dataset);
return false; return false;

View file

@ -276,7 +276,7 @@
callback(); callback();
// Force scrollTop on page load // Force scrollTop on page load
//$('html, body').scrollTop(0); $('html, body').scrollTop(0);
}); });
}; };