8
This commit is contained in:
@@ -97,12 +97,23 @@ define(['table', 'upload','form'], function (Table,Upload,Form) {
|
||||
Table.api.bindevent(table);
|
||||
},
|
||||
update:function(){
|
||||
var form = $('form');
|
||||
Form.api.bindevent(form);
|
||||
this.insert();
|
||||
},
|
||||
insert:function(){
|
||||
var form = $('form');
|
||||
Form.api.bindevent(form);
|
||||
var calc_version = function(v){
|
||||
var _v = v.split('');
|
||||
console.log(_v);
|
||||
$('#version').val(_v.join('.'));
|
||||
}
|
||||
$('#version_wgt').on('change',function(){
|
||||
var v = $(this).val();
|
||||
calc_version(v);
|
||||
}).on('input',function(){
|
||||
var v = $(this).val();
|
||||
calc_version(v);
|
||||
});
|
||||
}
|
||||
};
|
||||
return Version
|
||||
|
||||
Reference in New Issue
Block a user