From b5363b38f43ccd3b31f4565ccc9d30fc6c2d162c Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 1 Jun 2011 15:15:34 +0200 Subject: [PATCH] update ArrayInput --- source/Ox.UI/js/Form/Ox.ArrayInput.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Form/Ox.ArrayInput.js b/source/Ox.UI/js/Form/Ox.ArrayInput.js index b2514659..b964ecc4 100644 --- a/source/Ox.UI/js/Form/Ox.ArrayInput.js +++ b/source/Ox.UI/js/Form/Ox.ArrayInput.js @@ -87,7 +87,7 @@ Ox.ArrayInput = function(options, self) { } }) .appendTo(self.$element[i])); - self.$input.length > 1 && self.$removeButton[0].options({disabled: false}); + self.$input.length > 1 && self.$removeButton[0].options({title: 'remove'}); self.$input.length == self.options.max && self.$addButton.forEach(function($button) { $button.options({disabled: true}); }); @@ -101,7 +101,7 @@ Ox.ArrayInput = function(options, self) { self[key][i].removeElement(); self[key].splice(i, 1); }); - self.$input.length == 1 && self.$removeButton[0].options({disabled: true}); + self.$input.length == 1 && self.$removeButton[0].options({title: 'close'}); self.$input.length == self.options.max - 1 && self.$addButton.forEach(function($button) { $button.options({disabled: false}); });