mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Remove force_redirect because now it's unused
This commit is contained in:
parent
4296155a58
commit
6177044381
1 changed files with 0 additions and 13 deletions
|
@ -525,20 +525,7 @@
|
||||||
c.hideLoader();
|
c.hideLoader();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
|
||||||
|
|
||||||
force_redirect: function(to) {
|
|
||||||
c = this;
|
|
||||||
// This is a copy-pasta of some of the redirect/refresh code of
|
|
||||||
// sammy.js because for some reason calling the origina
|
|
||||||
// redirect/refresh function in some context does not work >.>
|
|
||||||
// (e.g. if you're already on the page)
|
|
||||||
c.trigger('redirect', {to: to});
|
|
||||||
c.app.last_location = c.path;
|
|
||||||
c.app.setLocation(to);
|
|
||||||
c.app.trigger('location-changed');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Add table
Reference in a new issue