]> _ Git - fluidbook-html5.git/commitdiff
(no commit message)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 10 Jul 2013 16:10:16 +0000 (16:10 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 10 Jul 2013 16:10:16 +0000 (16:10 +0000)
js/libs/fluidbook/fluidbook.nav.js
js/main.js

index 17b3ac66078cb01d8269500d92a001f15f8d5c6f..6f7d91646fd795a90b8f79acffe4476be4dd6e63 100644 (file)
@@ -58,6 +58,10 @@ FluidbookNav.prototype = {
                for (var e in this.fluidbook.datas.navOrder) {
                        var icon = this.fluidbook.datas.navOrder[e];
                        if (icon == 'home') {
+                               console.log(this.fluidbook.datas.home);
+                               if (this.fluidbook.datas.home == '%apphome%') {
+                                       this.fluidbook.datas.home = window.localStorage.getItem('apphome');
+                               }
                                if (this.fluidbook.datas.home != '') {
                                        this.addLink('nav-home', this.fluidbook.datas.home, 'home', 'home');
                                }
index b21876b654d5716f1ff8ada583c6b5b5b809ab39..59aa1b1c81f23efc4e1eaf9c73e28f5a76c516be 100644 (file)
@@ -170,9 +170,6 @@ function initEvents() {
        });
 
        $(document).on('click', 'a', function() {
-               if ($(this).attr('href') == '%apphome%') {
-                       $(this).attr('href', window.localStorage.getItem('apphome'));
-               }
                if (!DATAS.phonegap) {
                        return true;
                }