mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 12:17:05 -08:00
Remove debugging
This commit is contained in:
parent
4628c15813
commit
680ad676ca
|
@ -95,11 +95,9 @@
|
||||||
// this code adds the newly created object to that select
|
// this code adds the newly created object to that select
|
||||||
var selector = document.getElementById(select);
|
var selector = document.getElementById(select);
|
||||||
if(!selector) {
|
if(!selector) {
|
||||||
// console.error("Could not find original <select> element with an id of: "+select);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//console.log(document.getElementById(select));
|
|
||||||
// console.dir(selector);
|
|
||||||
selector.options[selector.length] = new Option(name, id);
|
selector.options[selector.length] = new Option(name, id);
|
||||||
selector.selectedIndex = selector.length - 1;
|
selector.selectedIndex = selector.length - 1;
|
||||||
$(selector).trigger("change");
|
$(selector).trigger("change");
|
||||||
|
@ -109,10 +107,8 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
error: function (result) {
|
error: function (result) {
|
||||||
// console.log('Error: ' + result.responseJSON.error.message );
|
|
||||||
msg = result.responseJSON.messages || result.responseJSON.error;
|
msg = result.responseJSON.messages || result.responseJSON.error;
|
||||||
$('#modal_error_msg').html("Server Error: "+msg).show();
|
$('#modal_error_msg').html("Server Error: "+msg).show();
|
||||||
//window.alert("Unable to add new " + model + " - error: " + msg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue