|
|
|
@@ -219,7 +219,6 @@ function tranSize(value){ |
|
|
|
return size+unitArr[index]; |
|
|
|
} |
|
|
|
function editorFn(context){ |
|
|
|
debugger |
|
|
|
let id= context.dataset.id |
|
|
|
let text = context.dataset.desc |
|
|
|
$('#edit-td').replaceWith("<div id='edit-div' style='width:80%;display: inline-block;'><textarea id='textarea-value' value='' rows='3' maxlength='255' style='width:80%;' id='edit-text'>"+text+"</textarea><i class='check icon' style='color: #50d4ab;' onclick='editorSure(\"" + text + "\",\"" + id + "\")'></i><i class='times icon' style='color: #f66f6a;' onclick='editorCancel(\"" + text + "\",\"" + id + "\")'></i></div>"); |
|
|
|
@@ -229,7 +228,6 @@ function editorCancel(text,id){ |
|
|
|
$('#edit-div').replaceWith(`<div id="edit-td" style="display:flex;"><span id="Description" title="${text}" class="iword-elipsis">${text}</span><i id="edit-pencil" data-id="${id}" data-desc="${text}" class="pencil alternate icon" style="cursor:pointer;vertical-align: top;" id="editor" onclick="editorFn(this)"></div>`) |
|
|
|
} |
|
|
|
function editorSure(text,id){ |
|
|
|
debugger |
|
|
|
let description=$('#textarea-value').val() |
|
|
|
let data = { |
|
|
|
ID:id, |
|
|
|
|