mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Restore top scroll with c.view
This commit is contained in:
parent
6fe0044adb
commit
de5d61d64e
2 changed files with 4 additions and 2 deletions
|
@ -50,7 +50,9 @@
|
|||
model.groups[group].members.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) {
|
||||
updateGroup(model, jQuery(this)[0].dataset);
|
||||
return false;
|
||||
|
|
|
@ -276,7 +276,7 @@
|
|||
callback();
|
||||
|
||||
// Force scrollTop on page load
|
||||
//$('html, body').scrollTop(0);
|
||||
$('html, body').scrollTop(0);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue