1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-10 12:34:49 +02:00

userpicker() functioning correctly with jquery

This commit is contained in:
Cameron
2013-02-05 16:39:48 -08:00
parent 2855665d56
commit 39e9b14cf6
5 changed files with 61 additions and 17 deletions

View File

@@ -12,6 +12,29 @@ $(document).ready(function()
$(".e-expandit").show();
// $(".e-spinner").spinner(); //FIXME breaks tooltips
$('.e-typeahead').each(function() {
var id = $(this).attr("id");
var name = '#' + id.replace('-usersearch', '');
var newval = $(this).attr("data-value");
$(this).typeahead({
source: $(this).attr("data-source"),
updater: function(text, type){
if(type == 'value')
{
$(name).val(text);
}
return text;
}
})
});
//check all
$("#check-all").click(function(event){