cosmetic changes

This commit is contained in:
rlx 2014-09-22 13:23:42 +02:00
parent 4a9400cbd9
commit 1ac7499986

View file

@ -289,9 +289,10 @@ Ox.ArrayEditable = function(options, self) {
var $target = $(e.target), var $target = $(e.target),
$element = $target.is('.OxEditableElement') $element = $target.is('.OxEditableElement')
? $target : $target.parents('.OxEditableElement'), ? $target : $target.parents('.OxEditableElement'),
position = $element.data('position'); position;
if (!$target.is('.OxInput')) { if (!$target.is('.OxInput')) {
if ($element.length) { if ($element.length) {
position = $element.data('position');
// if clicked on an element // if clicked on an element
if (position != self.selected) { if (position != self.selected) {
// select another item // select another item