信呼OA版本v2.3.8
This commit is contained in:
41
mode/bootstrapplugin/jquery-bootsoedit.js
vendored
Normal file
41
mode/bootstrapplugin/jquery-bootsoedit.js
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
双击编辑格
|
||||
*/
|
||||
|
||||
(function ($) {
|
||||
|
||||
function bootsoedit(element, options){
|
||||
var obj = element;
|
||||
var can = options;
|
||||
var rand = js.getrand();
|
||||
var me = this;
|
||||
|
||||
this.init = function(){
|
||||
obj[can.trigger](function(event){
|
||||
me.setcontent(this, event);
|
||||
});
|
||||
};
|
||||
|
||||
this.setcontent = function(o1, e){
|
||||
alert(1);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
$.fn.bootsoedit = function(options){
|
||||
var defaultVal = {
|
||||
trigger:'click',
|
||||
fields:'',
|
||||
data:[],//当前数据
|
||||
title:''
|
||||
};
|
||||
|
||||
|
||||
return this.each(function(){
|
||||
var can = $.extend({}, defaultVal, options);
|
||||
var clsa = new bootsoedit($(this), can);
|
||||
clsa.init();
|
||||
return clsa;
|
||||
});
|
||||
};
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user