mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/IZYIM-Prototype.git
synced 2026-08-22 22:23:57 +00:00
Merge branch 'master' of https://gitlab.com/ciefworldwide/IZYIM
This commit is contained in:
@@ -306,12 +306,14 @@ License: You must have a valid license purchased only from themeforest(the above
|
||||
<div id="tree_1" class="tree-demo">
|
||||
<ul>
|
||||
<li>
|
||||
014588
|
||||
Order List
|
||||
<ul>
|
||||
<li data-jstree='{ "type" : "file" }' onclick="show_content();" > 014587 </li>
|
||||
<li data-jstree='{ "type" : "file" }' onclick="show_content();" >
|
||||
<span class="editInPlace" >014587</span>
|
||||
</li>
|
||||
|
||||
<li data-jstree='{ "type" : "file" }' onclick="show_content();" >
|
||||
<a href="javascript:;"> 014586 </a>
|
||||
<span class="editInPlace" >014586</span>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@@ -1382,10 +1384,29 @@ License: You must have a valid license purchased only from themeforest(the above
|
||||
<script type="text/javascript">
|
||||
function show_content(){
|
||||
//alert('hoooo');
|
||||
document.getElementById("without_content").style.display = "none";
|
||||
document.getElementById("with_content").style.display = "";
|
||||
document.getElementById("file_manager").style.display = "";
|
||||
}
|
||||
document.getElementById("without_content").style.display = "none";
|
||||
document.getElementById("with_content").style.display = "";
|
||||
var elements = getElementsByClassName('editInPlace', '*', document);
|
||||
for (var i = 0; i < elements.length; i++) {
|
||||
elements[i].ondblclick = function() {
|
||||
this.setAttribute('oldText', this.innerHTML); // not actually required. I use this just in case you want to cancel and set the original text back.
|
||||
var textBox = document.createElement('INPUT');
|
||||
textBox.setAttribute('type', 'text');
|
||||
textBox.value = this.innerHTML;
|
||||
textBox.onblur = function() {
|
||||
var newValue = this.value;
|
||||
this.parentNode.innerHTML = newValue;
|
||||
//alert("Your new value: \n\n" + newValue);
|
||||
}
|
||||
|
||||
this.innerHTML = '';
|
||||
|
||||
this.appendChild(textBox);
|
||||
}
|
||||
}(i);
|
||||
}
|
||||
|
||||
|
||||
window.onload = function() {
|
||||
var elements = getElementsByClassName('editInPlace', '*', document);
|
||||
for (var i = 0; i < elements.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user