Clean log
This commit is contained in:
parent
72965fdb2e
commit
a7cb3fa492
@ -330,7 +330,7 @@ class DolEditor
|
|||||||
var aceEditor = window.ace.edit("'.$this->htmlname.'aceeditorid");
|
var aceEditor = window.ace.edit("'.$this->htmlname.'aceeditorid");
|
||||||
if (aceEditor) {
|
if (aceEditor) {
|
||||||
var cursorPos = aceEditor.getCursorPosition();
|
var cursorPos = aceEditor.getCursorPosition();
|
||||||
console.log(cursorPos);
|
//console.log(cursorPos);
|
||||||
if (cursorPos) {
|
if (cursorPos) {
|
||||||
jQuery("#'.$this->htmlname.'_x").val(cursorPos.column);
|
jQuery("#'.$this->htmlname.'_x").val(cursorPos.column);
|
||||||
jQuery("#'.$this->htmlname.'_y").val(cursorPos.row);
|
jQuery("#'.$this->htmlname.'_y").val(cursorPos.row);
|
||||||
@ -340,6 +340,7 @@ class DolEditor
|
|||||||
jQuery("#'.$this->htmlname.'").val(aceEditor.getSession().getValue());
|
jQuery("#'.$this->htmlname.'").val(aceEditor.getSession().getValue());
|
||||||
/*if (jQuery("#'.$this->htmlname.'").html().length > 0) return true;
|
/*if (jQuery("#'.$this->htmlname.'").html().length > 0) return true;
|
||||||
else return false;*/
|
else return false;*/
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
console.log("Failed to retrieve js object ACE from its name");
|
console.log("Failed to retrieve js object ACE from its name");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user