优化系统单据代码,更新sql
This commit is contained in:
@@ -26,27 +26,29 @@
|
||||
/**
|
||||
* 扩展datagrid的editors方法,支持combogrid
|
||||
*/
|
||||
$.extend($.fn.datagrid.defaults.editors, {
|
||||
combogrid: {
|
||||
init: function (container, options) {
|
||||
var input = $('<input type="text" style="height: 22px;" class="datagrid-editable-input">').appendTo(container);
|
||||
input.combogrid(options);
|
||||
return input;
|
||||
},
|
||||
destroy: function (target) {
|
||||
$(target).combogrid('destroy');
|
||||
},
|
||||
getValue: function (target) {
|
||||
return $(target).combogrid('getValue');
|
||||
},
|
||||
setValue: function (target, value) {
|
||||
$(target).combogrid('setValue', value);
|
||||
},
|
||||
resize: function (target, width) {
|
||||
$(target).combogrid('resize', width);
|
||||
if($.fn.datagrid) {
|
||||
$.extend($.fn.datagrid.defaults.editors, {
|
||||
combogrid: {
|
||||
init: function (container, options) {
|
||||
var input = $('<input type="text" style="height: 22px;" class="datagrid-editable-input">').appendTo(container);
|
||||
input.combogrid(options);
|
||||
return input;
|
||||
},
|
||||
destroy: function (target) {
|
||||
$(target).combogrid('destroy');
|
||||
},
|
||||
getValue: function (target) {
|
||||
return $(target).combogrid('getValue');
|
||||
},
|
||||
setValue: function (target, value) {
|
||||
$(target).combogrid('setValue', value);
|
||||
},
|
||||
resize: function (target, width) {
|
||||
$(target).combogrid('resize', width);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
$(function() {
|
||||
domresize();
|
||||
|
||||
Reference in New Issue
Block a user