$.glue.error('Your browser is not supported. Update to a recent version of Firefox or Chrome.');
if(typeofoptions.abort=='function'){
options.abort();
}
returnfalse;
}
},
handle_response:function(data,x,y){
if(!data){
$.glue.error('There was a problem communicating with the server');
}elseif(data['#error']){
$.glue.error('There was a problem uploading the file ('+data['#data']+')');
}else{
// add new elements to the dom and register them
if(data['#data'].length==0){
// special case for no new elements
$.glue.error('The server did not reply with any object. The file type you were uploading could either not be supported (look around for more modules!) or there could be an internal problem. Check the log file to be sure!');
return;
}
// we're not selecting the new objects but at least clear the current selection