|
@@ -207,7 +207,15 @@ function intOperButton() {
|
|
|
// 启用元素
|
|
|
comEnableElements("modal-table");
|
|
|
currentOper = "ADD";
|
|
|
- $('#id').removeAttr("readonly");//去除ID元素的readonly属性
|
|
|
+// $('#id').removeAttr("readonly");//去除ID元素的readonly属性
|
|
|
+ $('#initialsize').val("10");
|
|
|
+ $('#minidle').val("10");
|
|
|
+ $('#maxactive').val("50");
|
|
|
+ $('#timebetweenevictionrunsmillis').val("60000");
|
|
|
+ $('#minevictableidletimemillis').val("300000");
|
|
|
+ $('#testonreturn').val("FALSE");
|
|
|
+ $('#poolpreparedstatements').val("TRUE");
|
|
|
+ $('#maxpoolpreparedstatementpercon').val("20");
|
|
|
$("#modal-table #myModalLabel").text("新增数据源");
|
|
|
$('#modal-table').modal('show');
|
|
|
},
|
|
@@ -258,7 +266,7 @@ function editRecord(rid) {
|
|
|
// 启用元素
|
|
|
comEnableElements("modal-table");
|
|
|
currentOper = "EDIT";
|
|
|
- $('#id').attr("readonly","readonly");//将ID设置为readonly
|
|
|
+// $('#id').attr("readonly","readonly");//将ID设置为readonly
|
|
|
$("#modal-table #myModalLabel").text("编辑数据源");
|
|
|
initBaseInfo(rid);
|
|
|
}
|