for (var e in this.fluidbook.datas.navOrder) {
var icon = this.fluidbook.datas.navOrder[e];
if (icon == 'home') {
- console.log(this.fluidbook.datas.home);
+ var homeURL = this.fluidbook.datas.home;
if (this.fluidbook.datas.home == '%apphome%') {
- this.fluidbook.datas.home = decodeURIComponent($_GET.home);
+ homeURL = decodeURIComponent($_GET.home);
}
- if (this.fluidbook.datas.home != '') {
- this.addLink('nav-home', this.fluidbook.datas.home, 'home', 'home');
+ if (homeURL != '') {
+ this.addLink('nav-home', homeURL, 'home', 'home');
}
+
+ $("#home").click(function() {
+ console.log('home click');
+ window.history.go(-(window.history.length - 1));
+ return false;
+ });
} else if (icon == 'index') {
this.addLink('nav-index', '#/index', 'index', 'overview');
} else if (icon == 'chapters') {