Lines 1785-1791
Note that permanent location is a code, and location may be an authval.
Link Here
|
1785 |
if ( data.status === 409 ) { |
1785 |
if ( data.status === 409 ) { |
1786 |
var response = data.responseJSON; |
1786 |
var response = data.responseJSON; |
1787 |
if ( response.key === "PRIMARY" ) { |
1787 |
if ( response.key === "PRIMARY" ) { |
1788 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-warning">'+_("Warning: Item '%s' aready attached").format(barcode)+'</div>'); |
1788 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-warning">'+_("Warning: Item '%s' already attached").format(barcode)+'</div>'); |
1789 |
} else { |
1789 |
} else { |
1790 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
1790 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
1791 |
} |
1791 |
} |
1792 |
- |
|
|