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),
$element = $target.is('.OxEditableElement')
? $target : $target.parents('.OxEditableElement'),
position = $element.data('position');
position;
if (!$target.is('.OxInput')) {
if ($element.length) {
position = $element.data('position');
// if clicked on an element
if (position != self.selected) {
// select another item