webbuild.html: fix for editor change callback and other minor fixes
This commit is contained in:
parent
506e531ec8
commit
35abe2122a
@ -34,7 +34,6 @@ function checkEnter(event) {
|
|||||||
function checkMinLength(st,len) {
|
function checkMinLength(st,len) {
|
||||||
if (st.length >= len) return true;
|
if (st.length >= len) return true;
|
||||||
return false;
|
return false;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function suggestSpecName(url) {
|
function suggestSpecName(url) {
|
||||||
|
@ -40,7 +40,6 @@ window.onbeforeunload = function (e) {
|
|||||||
<link rel="stylesheet" href="/scripts/codemirror/addon/dialog/dialog.css">
|
<link rel="stylesheet" href="/scripts/codemirror/addon/dialog/dialog.css">
|
||||||
<script src="/scripts/webbuild.js"></script>
|
<script src="/scripts/webbuild.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
|
||||||
var user = "";
|
var user = "";
|
||||||
var user_email = "";
|
var user_email = "";
|
||||||
var secret = "";
|
var secret = "";
|
||||||
@ -160,16 +159,15 @@ function ajax_getvalues(request,confirm) {
|
|||||||
} else if (document.getElementById(nodes[i].nodeName) != undefined) {
|
} else if (document.getElementById(nodes[i].nodeName) != undefined) {
|
||||||
$("#"+nodes[i].nodeName).html(nodes[i].childNodes[0].nodeValue);
|
$("#"+nodes[i].nodeName).html(nodes[i].childNodes[0].nodeValue);
|
||||||
spectext = document.getElementById("spectext");
|
spectext = document.getElementById("spectext");
|
||||||
if ((nodes[i].nodeName == "editor") && (spectext != undefined) && (spectext.parentNode != undefined))
|
if ((nodes[i].nodeName == "editor") && (spectext != undefined) && (spectext.parentNode != undefined)) {
|
||||||
{
|
editor = CodeMirror.fromTextArea(spectext,{
|
||||||
editor = CodeMirror.fromTextArea(spectext,
|
lineNumbers: true,
|
||||||
{ lineNumbers: true,
|
|
||||||
fixedGutter: true,
|
fixedGutter: true,
|
||||||
tabSize: 4,
|
tabSize: 4,
|
||||||
indentUnit: 4,
|
indentUnit: 4,
|
||||||
indentWithTabs: true,
|
indentWithTabs: true
|
||||||
onChange: function() { editorChanged(); }
|
})
|
||||||
});
|
editor.on('change', editorChanged);
|
||||||
editor.setSize(null, 500);
|
editor.setSize(null, 500);
|
||||||
} else if ((nodes[i].nodeName == "output") && (document.getElementById("outputbottom") != undefined)) {
|
} else if ((nodes[i].nodeName == "output") && (document.getElementById("outputbottom") != undefined)) {
|
||||||
document.getElementById("outputbottom").scrollTop = document.getElementById("outputbottom").scrollHeight;
|
document.getElementById("outputbottom").scrollTop = document.getElementById("outputbottom").scrollHeight;
|
||||||
@ -178,7 +176,6 @@ function ajax_getvalues(request,confirm) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//alert("nodes done");
|
|
||||||
document.getElementById("webbuildform").disabled = false;
|
document.getElementById("webbuildform").disabled = false;
|
||||||
document.getElementById("status").innerHTML = "";
|
document.getElementById("status").innerHTML = "";
|
||||||
}
|
}
|
||||||
@ -302,9 +299,8 @@ function ajaxFileUpload(request)
|
|||||||
<span id="operationpanel"></span>
|
<span id="operationpanel"></span>
|
||||||
</div>
|
</div>
|
||||||
<div style="clear:both"></div>
|
<div style="clear:both"></div>
|
||||||
</div>
|
|
||||||
<span id="window"></span>
|
<span id="window"></span>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user