mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Remove useless code.
This commit is contained in:
parent
d0c4230e24
commit
1ac32de447
1 changed files with 1 additions and 10 deletions
11
js/app.js
11
js/app.js
|
@ -369,16 +369,7 @@ app = Sammy('#main', function (sam) {
|
||||||
req.params.users = data.users;
|
req.params.users = data.users;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
sam.before(/apps\/install\//, function (req){
|
|
||||||
// Preload apps list.
|
|
||||||
req.params.apps = [];
|
|
||||||
req.api('/apps', function(data) {
|
|
||||||
// Only installed apps
|
|
||||||
$.each(data['apps'], function(k, v) {
|
|
||||||
if (v['installed']) req.params.apps.push(v);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
sam.before({except: {path: ['#/logout', '#/login', '#/postinstall', '#/postinstall/domain', '#/postinstall/password']}}, function (req) {
|
sam.before({except: {path: ['#/logout', '#/login', '#/postinstall', '#/postinstall/domain', '#/postinstall/password']}}, function (req) {
|
||||||
// Store path for further redirections
|
// Store path for further redirections
|
||||||
|
|
Loading…
Add table
Reference in a new issue