|
@@ -5,7 +5,7 @@ var editors_index = [];
|
|
|
var tables = [];
|
|
|
var select = '';
|
|
|
var submitButton = '';
|
|
|
-
|
|
|
+var editorWidth = 0;
|
|
|
|
|
|
|
|
|
String.prototype.replaceAll = function(reallyDo, replaceWith, ignoreCase) {
|
|
@@ -36,8 +36,13 @@ $(document).ready(function()
|
|
|
//init();
|
|
|
});
|
|
|
|
|
|
-function init()
|
|
|
+function init(ew)
|
|
|
{
|
|
|
+ if (ew) {
|
|
|
+ editorWidth = ew;
|
|
|
+ } else {
|
|
|
+ editorWidth = 0;
|
|
|
+ }
|
|
|
editors = [];
|
|
|
editors_index = [];
|
|
|
initEditor();
|
|
@@ -360,6 +365,11 @@ function loadEditorParam(e)
|
|
|
*/
|
|
|
}
|
|
|
|
|
|
+ if (editorWidth > 0) {
|
|
|
+ param.width = editorWidth + 'px';
|
|
|
+ param.minWidth = editorWidth + 'px';
|
|
|
+ }
|
|
|
+
|
|
|
return param;
|
|
|
}
|
|
|
|
|
@@ -1720,7 +1730,8 @@ function showAlert(msg, func, title)
|
|
|
};
|
|
|
|
|
|
if (type == 1) {
|
|
|
- config.area = '500px';
|
|
|
+ //config.type = 1;
|
|
|
+ config.area = '800px';
|
|
|
}
|
|
|
|
|
|
if (func) {
|
|
@@ -1729,7 +1740,7 @@ function showAlert(msg, func, title)
|
|
|
func();
|
|
|
};
|
|
|
}
|
|
|
- layer.open(config);
|
|
|
+ var index = layer.open(config);
|
|
|
}
|
|
|
|
|
|
function fastEdit(e, url, title, col)
|
|
@@ -1747,6 +1758,7 @@ function fastEdit(e, url, title, col)
|
|
|
var html = $(t).find('form').prop("outerHTML");
|
|
|
var valid = $(t).find('#valid').prop("outerHTML");
|
|
|
html = html + valid;
|
|
|
+ html = html.replace('left: 740px', 'left:583px;')
|
|
|
showAlert(html, func, title);
|
|
|
$('#update_button').hide();
|
|
|
layui.use(['formSelects'], function(){
|
|
@@ -1757,7 +1769,7 @@ function fastEdit(e, url, title, col)
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
-
|
|
|
+ init(560);
|
|
|
});
|
|
|
}
|
|
|
|