Merge pull request #1822 from hector-cortez/BUG-11856

BUG 11856 El javascript deja de funcionar al habilitar el html editing SOLVED
This commit is contained in:
julceslauhub
2013-06-24 08:46:49 -07:00
2 changed files with 14 additions and 4 deletions

View File

@@ -458,6 +458,11 @@ var dynaformEditor={
if( ! xmlEditor ) {
clientWinSize = getClientWindowSize();
if (_BROWSER.name == 'msie') {
var content_withoutLabel = document.getElementById("form[XML]").parentNode;
content_withoutLabel.style.height = (clientWinSize.height - 140) + 'px';
}
/*xmlEditor = CodeMirror.fromTextArea('form[XML]', {
height: (clientWinSize.height - 120) + "px",
width: (_BROWSER.name == 'msie' ? '100%' : '98%'),
@@ -532,6 +537,11 @@ var dynaformEditor={
if( ! jsEditor )
{
clientWinSize = getClientWindowSize();
if (_BROWSER.name == 'msie') {
var content_withoutLabel = document.getElementById("form[JS]").parentNode;
content_withoutLabel.style.height = (clientWinSize.height - 140) + 'px';
}
startJSCodePress();
/*jsEditor = CodeMirror.fromTextArea('form[JS]', {
@@ -544,9 +554,9 @@ var dynaformEditor={
continuousScanning: 500 });*/
jsEditor = CodeMirror.fromTextArea(document.getElementById("form[JS]"), {
mode: "javascript",
lineNumbers: true,
lineWrapping: true });
mode: "javascript",
lineNumbers: true,
lineWrapping: true });
}
} else {
showRowById('JS_TITLE');

View File

@@ -48,7 +48,7 @@
{elseif ($field->type==='')}
{elseif ($field->withoutLabel)}
<tr>
<td colspan="2" class="withoutLabel">{$field->field}</td>
<td colspan="2" class="withoutLabel" style="height:auto;">{$field->field}</td>
</tr>
{elseif (isset($field->withoutValue) && $field->withoutValue)}
<tr>