Skip to content

Commit

Permalink
Merge pull request #1207 from kbase/easter-egg
Browse files Browse the repository at this point in the history
ADDS CRITICAL MISSING FEATURE!
  • Loading branch information
briehl committed Nov 9, 2017
2 parents f4bffbe + 99ccbb0 commit bdbb7b6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ define([
.append(' Add');
}, this));

// note how many times we've clicked on the data browser slideout button.
var numDataBrowserClicks = 0;

this.$slideoutBtn = $('<button>')
.addClass('btn btn-xs btn-default')
.tooltip({
Expand All @@ -197,6 +200,10 @@ define([
this.$slideoutBtn.tooltip('hide');
this.trigger('hideGalleryPanelOverlay.Narrative');
this.trigger('toggleSidePanelOverlay.Narrative', this.$overlayPanel);
//once we've clicked it 10 times, meaning we've open and shut the browser 5x, we reveal its TRUE NAME.
if (++numDataBrowserClicks >= 10) {
this.$slideoutBtn.attr('data-original-title', 'Hide / Show Slidey McSliderface')
}
}.bind(this));

this.addButton(this.$slideoutBtn);
Expand Down

0 comments on commit bdbb7b6

Please sign in to comment.