forked from 0x2620/oxjs
use OxKeyboardFocus class for input-like elements
This commit is contained in:
parent
c69858ca2d
commit
2aec28f105
4 changed files with 10 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue