|
|
@@ -631,15 +631,6 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
|
|
|
})
|
|
|
});
|
|
|
|
|
|
- huePubSub.subscribe('open.link', function (href) {
|
|
|
- if (href.startsWith('/') && !href.startsWith('/hue')){
|
|
|
- page('/hue' + href);
|
|
|
- }
|
|
|
- else {
|
|
|
- page(href);
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
var loadedJs = [];
|
|
|
var loadedCss = [];
|
|
|
var loadedApps = [];
|
|
|
@@ -753,10 +744,6 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
|
|
|
});
|
|
|
};
|
|
|
|
|
|
- huePubSub.subscribe('switch.app', function (name) {
|
|
|
- self.currentApp(name);
|
|
|
- });
|
|
|
-
|
|
|
// prepend /hue to all the link on this page
|
|
|
$('a[href]').each(function () {
|
|
|
var link = $(this).attr('href');
|
|
|
@@ -887,7 +874,14 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
|
|
|
|
|
|
page();
|
|
|
|
|
|
- huePubSub.subscribe('page.route', page);
|
|
|
+ huePubSub.subscribe('open.link', function (href) {
|
|
|
+ if (href.startsWith('/') && !href.startsWith('/hue')){
|
|
|
+ page('/hue' + href);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ page(href);
|
|
|
+ }
|
|
|
+ });
|
|
|
};
|
|
|
|
|
|
var onePageViewModel = new OnePageViewModel();
|