[fix] Remove useless code.

This commit is contained in:
opi 2014-12-01 19:06:30 +01:00
parent d0c4230e24
commit 1ac32de447

View file

@ -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