-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from mark8866/master
fix node list bug and add a search example
- Loading branch information
Showing
7 changed files
with
74 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
/** | ||
* jQuery EasyUI 1.3.4 | ||
* | ||
* Copyright (c) 2009-2013 www.jeasyui.com. All rights reserved. | ||
* | ||
* Licensed under the GPL or commercial licenses | ||
* To use it on other terms please contact us: [email protected] | ||
* https://www.gnu.org/licenses/gpl.txt | ||
* https://www.jeasyui.com/license_commercial.php | ||
* | ||
*/ | ||
/** | ||
* jQuery EasyUI 1.3.4 | ||
* | ||
* Copyright (c) 2009-2013 www.jeasyui.com. All rights reserved. | ||
* | ||
* Licensed under the GPL or commercial licenses | ||
* To use it on other terms please contact us: [email protected] | ||
* https://www.gnu.org/licenses/gpl.txt | ||
* https://www.jeasyui.com/license_commercial.php | ||
* | ||
*/ | ||
(function($){ | ||
$.parser={auto:true,onComplete:function(_1){ | ||
},plugins:["draggable","droppable","resizable","pagination","tooltip","linkbutton","menu","menubutton","splitbutton","progressbar","tree","combobox","combotree","combogrid","numberbox","validatebox","searchbox","numberspinner","timespinner","calendar","datebox","datetimebox","slider","layout","panel","datagrid","propertygrid","treegrid","tabs","accordion","window","dialog"],parse:function(_2){ | ||
|
@@ -7831,7 +7831,7 @@ dc.body2.triggerHandler("scroll"); | |
_54c(); | ||
$(_545).datagrid("autoSizeColumn"); | ||
function _54c(){ | ||
if(opts.idField){ | ||
if(opts.idField && data.rows!= null){ | ||
for(var i=0;i<data.rows.length;i++){ | ||
var row=data.rows[i]; | ||
if(_54d(_546.selectedRows,row)){ | ||
|
@@ -8275,9 +8275,11 @@ var _5ca=$.data(_5c9,"datagrid"); | |
var data=_5ca.data; | ||
var rows=data.rows; | ||
var _5cb=[]; | ||
if(rows != null){ | ||
for(var i=0;i<rows.length;i++){ | ||
_5cb.push($.extend({},rows[i])); | ||
} | ||
} | ||
_5ca.originalRows=_5cb; | ||
_5ca.updatedRows=[]; | ||
_5ca.insertedRows=[]; | ||
|
@@ -8831,6 +8833,7 @@ return; | |
} | ||
} | ||
var _660=["<table class=\"datagrid-btable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"]; | ||
if(rows != null){ | ||
for(var i=0;i<rows.length;i++){ | ||
var css=opts.rowStyler?opts.rowStyler.call(_65b,i,rows[i]):""; | ||
var _661=""; | ||
|
@@ -8850,6 +8853,7 @@ _660.push("<tr id=\""+_664+"\" datagrid-row-index=\""+i+"\" "+cls+" "+_663+">"); | |
_660.push(this.renderRow.call(this,_65b,_65f,_65d,i,rows[i])); | ||
_660.push("</tr>"); | ||
} | ||
} | ||
_660.push("</tbody></table>"); | ||
$(_65c).html(_660.join("")); | ||
},renderFooter:function(_665,_666,_667){ | ||
|
@@ -12180,4 +12184,4 @@ return _8ff; | |
},onComplete:function(_904){ | ||
}}; | ||
})(jQuery); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters