|
|
@@ -747,10 +747,12 @@ function switchChange(element) {
|
|
|
return !currentStatus;
|
|
|
}
|
|
|
|
|
|
-function editEngineer(selector) {
|
|
|
- let engineerName = $(selector).prev("span").text();
|
|
|
+function editEngineer(selector,key) {
|
|
|
+ let editText = $(selector).prev("span").text();
|
|
|
let parentDiv = $(selector).parent("div");
|
|
|
- parentDiv.next("div").find("input").val(engineerName);
|
|
|
+ let width = key == 'seq'?70:200;
|
|
|
+ parentDiv.next("div").css('width',width);
|
|
|
+ parentDiv.next("div").find("input").val(editText);
|
|
|
parentDiv.hide();
|
|
|
parentDiv.next("div").show();
|
|
|
}
|
|
|
@@ -769,7 +771,11 @@ function confirmUpdate(selector,engineerID) {
|
|
|
let updateData = {};
|
|
|
updateData[key] = newValue;
|
|
|
updateEngineer(engineerID,updateData,function () {
|
|
|
- inputDiv.prev("div").find("span").text(newValue);
|
|
|
+ if(key == 'seq'){
|
|
|
+ window.location.reload();
|
|
|
+ } else {
|
|
|
+ inputDiv.prev("div").find("span").text(newValue);
|
|
|
+ }
|
|
|
});
|
|
|
inputDiv.prev("div").show();
|
|
|
inputDiv.hide();
|