this.hideEdge = this.fluidbook.settings.tabsHideEdges;
this.linkWidth = parseFloat(this.fluidbook.settings.tabsLinkWidth);
this.priority = parseFloat(this.fluidbook.settings.tabsPriority) / 100;
+ this.disabledOnPages=this.fluidbook.settings.tabsDisabledOnPages;
this.sections = this.fluidbook.settings.tabsSections.map(function (x) {
return parseInt(x);
changePage: function (page) {
var id = 'oo';
var $this = this;
- $.each(this.links, function (k, v) {
- if (page >= v.page) {
- try {
- if (v.last !== undefined && page >= v.last) {
- id = 'none';
- } else {
- id = v.id;
- }
- } catch (e) {
+ if(this.disabledOnPages.indexOf(page)>=0){
+ id='none';
+ }else {
+ $.each(this.links, function (k, v) {
+ if (page >= v.page) {
+ try {
+ if (v.last !== undefined && page >= v.last) {
+ id = 'none';
+ } else {
+ id = v.id;
+ }
+ } catch (e) {
+ }
}
- }
- });
+ });
+ }
if (id === 'none') {
this.svg.find('[id^="o"].active').removeClass('active');