Merge pull request #1 from fonqing/Update-Layedit-build
layedit build 第一个参数支持html对象
This commit is contained in:
commit
e9888df812
@ -54,7 +54,7 @@ layui.define(['layer', 'form'], function(exports){
|
||||
|
||||
var that = this
|
||||
,config = that.config
|
||||
,ELEM = 'layui-layedit', textArea = $('#'+id)
|
||||
,ELEM = 'layui-layedit', textArea = $(typeof(id)=='string'?'#'+id:id)
|
||||
,name = 'LAY_layedit_'+ (++that.index)
|
||||
,haveBuild = textArea.next('.'+ELEM)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user