replace href to ng-click in sidebars. add hack to close sidebars
This commit is contained in:
parent
a115a6d17a
commit
eeab451bbc
9 changed files with 38 additions and 32 deletions
|
|
@ -114,15 +114,16 @@ angular
|
|||
$keepaliveProvider.interval(30); // in seconds
|
||||
})
|
||||
.run(function($rootScope, $location, $idle, gettextCatalog, uriHandler) {
|
||||
|
||||
gettextCatalog.currentLanguage = config.defaultLanguage;
|
||||
// not for mobileApp
|
||||
|
||||
// Register URI handler, not for mobileApp
|
||||
if (!window.cordova) {
|
||||
$idle.watch();
|
||||
uriHandler.register();
|
||||
}
|
||||
|
||||
$rootScope.$on('$routeChangeStart', function(event, next, current) {
|
||||
|
||||
|
||||
if (!ls || ls.length < 1) {
|
||||
$location.path('unsupported');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue