incremental UI changes

This commit is contained in:
Jason White
2016-07-05 08:16:32 -04:00
parent c350e86772
commit d27712affa
8 changed files with 121 additions and 122 deletions

View File

@ -19,13 +19,23 @@ function($,
this.hideHints();
},
isVisible: function() {
return this.$el.is(':visible');
},
toggleLabel: function() {
this.$el.text((showing) ? 'Hide hints' : 'Show hints');
},
render:function() {
if (this.$el.is(':visible')) {
if (this.isVisible()) {
this.$el.hide(350);
} else {
this.$el.show(350);
}
this.toggleLabel()
if (this.collection.length > 0) {
this.hideShowPrevNextButtons();
}