Authored by weiqingting

修改common

... ... @@ -7,18 +7,20 @@ edit2 = require('./edit2'),
dropDown = require('./dropDown'),
dialog=require('./dialog'),
tab=require('./tab'),
//tab2=require('./tab2'),
tab2=require('./tab2'),
tabTree=require('./tabTree'),
util=require('./util'),
components=require('./edit2'),
drag=require('./drag');
drag2=require('./drag2');
drag=require('./drag'),
drag2=require('./drag2'),
popImg=require('./popImg');
var common={
grid:grid,
dialog:dialog,
tab:tab,
//tab2:tab2,
tab2:tab2,
dropDown:dropDown,
edit:edit,
edit2:edit2,
... ... @@ -26,6 +28,7 @@ var common={
tabTree:tabTree,
drag:drag,
drag2:drag2,
popImg:popImg,
components:components
};
... ...
... ... @@ -155,7 +155,7 @@ components.prototype={
$("select").each(function() {
var _value = $(this).attr("value");
if (_value) {
$("option[value='" + _value + "']", $(this)).attr("selected", true);
$("option[value='" + _value + "']", $(this)).prop("selected", true);
}
});
},
... ...
... ... @@ -235,7 +235,7 @@ grid.prototype = {
},
complete: function(res) {
console.log("complete~~");
// p.complete && p.complete();
//p.complete && p.complete();
},
error: function(res) {
console.log("error~~", res);
... ...