Fix glitch with undefined theme

master
Nick Sergeant 2012-01-24 19:08:24 -05:00
parent 26e03692e3
commit c6ffe88f54
2 changed files with 13 additions and 0 deletions

View File

@ -440,6 +440,7 @@ article.snipt {
}
}
section.code {
background-color: #FFF;
height: 200px;
overflow: hidden;
position: relative;

View File

@ -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