]> _ Git - fluidbook-html5.git/commitdiff
(no commit message)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 10 Jul 2014 16:34:47 +0000 (16:34 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 10 Jul 2014 16:34:47 +0000 (16:34 +0000)
js/libs/fluidbook/fluidbook.js
js/libs/fluidbook/fluidbook.l10n.js

index bc9454d528c4d5b727e81464e2fd0236866182d2..2957b8dba6700a967d41b12f2f28f0b1a8ddca1f 100644 (file)
@@ -761,7 +761,7 @@ Fluidbook.prototype = {
                } else if (view == 'chapters') {
                        this.openChapters(cb);
                } else if (view == 'archives') {
-                       this.openArchives(this.l10n.__($("#nav #archives").attr('help')), cb);
+                       this.openArchives($("#nav #archives").data('tooltip'), cb);
                } else {
                        this['open' + camelView](param1, param2, cb);
                }
index 243bcf4179103cd6e999dac5ed215e07d36a6a01..2d8f998ab41348cbb9487b52a471adca58adc9e4 100644 (file)
@@ -120,6 +120,9 @@ FluidbookL10N.prototype = {
                });
        },
        __: function(str, markupIfNonAvailable) {
+               if (str === undefined) {
+                       return;
+               }
                if (str.substr(0, 1) == '!') {
                        return str.substr(1);
                }