提交 c663ef43 编写于 作者: C Catouse

* fixed an error in board.js.

上级 8ee9277a
......@@ -4510,7 +4510,7 @@ shortcut = {
}
else if(!$this.attr('data-id'))
{
$this.attr('data-id', idSeed++);
$this.attr('data-id', 'board' + (idSeed++));
}
if($this.hasClass('board'))
......@@ -4525,7 +4525,7 @@ shortcut = {
Boards.prototype.bind = function(items)
{
var $boards = this.$;
var $boards = this.$, setting = this.options;
if(typeof(items) == 'undefined')
{
items = $boards.find('.board-item:not(".disable-drop, .board-item-shadow")');
......@@ -4559,6 +4559,10 @@ shortcut = {
{
if(e.isNew)
{
if(setting.hasOwnProperty('drop') && $.isFunction(setting['drop']))
{
setting['drop'](e);
}
e.element.insertBefore(e.target);
}
},
......
......@@ -18,14 +18,13 @@ if (typeof jQuery === "undefined") { throw new Error("ZUI requires jQuery") }
// "pager.js"
// @koala-append "../../../js/tab.js"
// "lightbox.js"
// "dashboard.js"
// "menu.js"
// @koala-append "../../../js/dashboard.js"
// @koala-append "../../../js/menu.js"
// @koala-append "../../../js/table.data.js"
// @koala-append "../../../js/bootbox.js"
// "messager.js"
// @koala-append "../../../js/string.js"
// @koala-append "../../../js/date.js"
// @koala-append "../../../js/resize.js"
//
// @koala-append "../../../js/droppable.js"
// @koala-append "../../../js/boards.js"
// @koala-append "../../../js/messager.js"
......@@ -62,7 +62,7 @@
}
else if(!$this.attr('data-id'))
{
$this.attr('data-id', idSeed++);
$this.attr('data-id', 'board' + (idSeed++));
}
if($this.hasClass('board'))
......@@ -77,7 +77,7 @@
Boards.prototype.bind = function(items)
{
var $boards = this.$;
var $boards = this.$, setting = this.options;
if(typeof(items) == 'undefined')
{
items = $boards.find('.board-item:not(".disable-drop, .board-item-shadow")');
......@@ -111,6 +111,10 @@
{
if(e.isNew)
{
if(setting.hasOwnProperty('drop') && $.isFunction(setting['drop']))
{
setting['drop'](e);
}
e.element.insertBefore(e.target);
}
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册