Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit f6b232e

Browse files
committed
Only make icon transparent when disabled
1 parent b7bfaad commit f6b232e

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

css/obBase.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5599,6 +5599,15 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
55995599
opacity: 0.7;
56005600
}
56015601

5602+
#ov1 .disabled-icon {
5603+
pointer-events: none;
5604+
}
5605+
5606+
#ov1 .disabled-icon:before,
5607+
#ov1 .disabled [class *= "ion-"]:before {
5608+
opacity: 0.2;
5609+
}
5610+
56025611
#ov1 .overflowVisible {
56035612
overflow: visible;
56045613
}

js/router.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,14 @@ module.exports = Backbone.Router.extend({
136136
this.historyAction = 'default';
137137

138138
if (this.historyPosition == this.historySize)
139-
$('.js-navFwd').addClass('disabled');
139+
$('.js-navFwd').addClass('disabled-icon');
140140
else
141-
$('.js-navFwd').removeClass('disabled');
141+
$('.js-navFwd').removeClass('disabled-icon');
142142

143143
if (this.historyPosition == 1)
144-
$('.js-navBack').addClass('disabled');
144+
$('.js-navBack').addClass('disabled-icon');
145145
else
146-
$('.js-navBack').removeClass('disabled');
147-
148-
console.log('position: ' + this.historyPosition + '; size: ' + this.historySize);
146+
$('.js-navBack').removeClass('disabled-icon');
149147

150148
if (callback) callback.apply(this, args);
151149
},

0 commit comments

Comments
 (0)