ae singleclick

This commit is contained in:
j 2012-01-29 14:59:30 +05:30
parent 46e10fb81b
commit 05b4d0cf82

View file

@ -210,7 +210,8 @@ Ox.ArrayEditable = function(options, self) {
function singleclick(e) {
var $target = $(e.target),
$element = $target.parents('.OxEditableElement'),
$element = $target.is('.OxEditableElement')
? $target : $target.parents('.OxEditableElement'),
position = $element.data('position');
if (!$target.is('.OxInput')) {
if ($element.length) {