Remove items after they are selected

This commit is contained in:
Michael RICOIS 2012-07-31 09:57:45 +00:00
parent 56babddc4b
commit a1dd0324bf

View File

@ -87,7 +87,7 @@ $(document).ready(function()
var oldhtml = $('ul#selectqueries').html();
var newhtml = '<li name="' + ui.item.value + '">' + ui.item.label + '</li>';
$('ul#selectqueries').html(oldhtml + newhtml);
}
}
this.value = '';
return false;
},
@ -105,6 +105,7 @@ $(document).ready(function()
});
set(name, values.join(','));
}
ul.empty();
});
$('#tabs').delegate('a.autocompleteEx', 'click', function(e){
@ -118,6 +119,7 @@ $(document).ready(function()
});
set(name, values.join(','), 1);
}
ul.empty();
});
$('#tabs').delegate('a.selectMultiple', 'click', function(e){
@ -217,6 +219,16 @@ $(document).ready(function()
}
});
$('#tabs').delegate('a.list', 'click', function(e) {
e.stopPropagation();
var obj = $(this).parent().find('textarea.criteres');
var name = obj.attr('name');
var value = obj.val();
if (value!='') {
set(name, value);
}
});
});
function set(key, value, ex)