1
0
Fork 0
forked from 0x2620/oxjs

use OxKeyboardFocus class for input-like elements

This commit is contained in:
rlx 2014-09-26 12:24:34 +02:00
commit 2aec28f105
4 changed files with 10 additions and 11 deletions

View file

@ -67,7 +67,10 @@ Ox.Editable = function(options, self) {
self.$value.html(formatValue());
}
})
.addClass('OxEditableElement' + (self.options.editable ? ' OxEditable' : ''))
.addClass(
'OxEditableElement OxKeyboardFocus'
+ (self.options.editable ? ' OxEditable' : '')
)
.on({
click: function(e) {
var $target = $(e.target);