Fix glitch with undefined theme
parent
26e03692e3
commit
c6ffe88f54
|
@ -440,6 +440,7 @@ article.snipt {
|
|||
}
|
||||
}
|
||||
section.code {
|
||||
background-color: #FFF;
|
||||
height: 200px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
|
|
@ -34,7 +34,12 @@
|
|||
});
|
||||
|
||||
},
|
||||
events: {
|
||||
'showKeyboardShortcuts': 'showKeyboardShortcuts'
|
||||
},
|
||||
|
||||
keyboardShortcuts: function() {
|
||||
var $el = this.$el;
|
||||
|
||||
$search_query = this.$search_query;
|
||||
$document = $(document);
|
||||
|
@ -45,12 +50,19 @@
|
|||
$search_query.focus();
|
||||
});
|
||||
|
||||
$document.bind('keydown', 'Shift+/', function(e) {
|
||||
$el.trigger('showKeyboardShortcuts');
|
||||
});
|
||||
|
||||
// Escape
|
||||
$('input').bind('keydown', 'esc', function(e) {
|
||||
e.preventDefault();
|
||||
this.blur();
|
||||
});
|
||||
},
|
||||
showKeyboardShortcuts: function() {
|
||||
alert('Keyboard shortcut modal.');
|
||||
},
|
||||
inFieldLabels: function () {
|
||||
$('div.infield label', this.$el).inFieldLabels({
|
||||
fadeDuration: 200
|
||||
|
|
Loading…
Reference in New Issue