diff --git a/sat.core.js b/sat.core.js index ee79d45..158af17 100644 --- a/sat.core.js +++ b/sat.core.js @@ -381,7 +381,7 @@ SATable.createHead = function() { self.dom.filter.button = btnFilter } if (self.createURL != null) { - var btnCreate = getDom.AButton('创建', 'javascript:void(0);') + var btnCreate = getDom.AButton('创建', self.createURL) $(divBtn).append(btnCreate) } $(divBetween).append(divTitle).append(divBtn) @@ -857,4 +857,4 @@ SATable.SimpleAjaxTable = function(tableInfo) { saTable.initData(tableInfo) saTable.initTable() saTable.update() -} \ No newline at end of file +}