|
|
|
@ -23,11 +23,6 @@ function init_edit(partID) {
|
|
|
|
|
$('input[name=notes-input]').show();
|
|
|
|
|
$('table#details tr#notes td p').hide();
|
|
|
|
|
|
|
|
|
|
// make map have names of containers for this one click
|
|
|
|
|
if (!$('img#map').attr('src').endsWith('/a')){
|
|
|
|
|
$('img#map').attr('src', $('img#map').attr('src') + '/a')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// var newButton = '<div class="round-button-left"><a href="#" onclick="save(' + partID + ')"><i class="fa fa-check" aria-hidden="true"></i></a></div>';
|
|
|
|
|
// $('.round-button-left').replaceWith(newButton);
|
|
|
|
|
$('#edit-button').html('<i class="fa fa-check" aria-hidden="true"></i>');
|
|
|
|
@ -46,11 +41,7 @@ function new_entry() {
|
|
|
|
|
init_edit(-1);
|
|
|
|
|
overlay_in();
|
|
|
|
|
container_onchange();
|
|
|
|
|
|
|
|
|
|
// make map have names of containers for this one click
|
|
|
|
|
if (!$('img#map').attr('src').endsWith('/a')){
|
|
|
|
|
$('img#map').attr('src', $('img#map').attr('src') + '/a')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function end_edit() {
|
|
|
|
@ -84,7 +75,7 @@ function end_edit() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function save(partID) {
|
|
|
|
|
if (!$('#location-dropdown').val() || $('#location-dropdown').val()== -1 ) {
|
|
|
|
|
if (!$('#location-dropdown').val() || ($'#location-dropdown').val()== -1 ) {
|
|
|
|
|
alert('Please select a location.');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|