Remove items after they are selected
This commit is contained in:
parent
56babddc4b
commit
a1dd0324bf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user