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
Ext.override(Ext.data.proxy.Server, { | |
encodeSorters: function (sorters, string) { | |
var model = this.model, | |
map = model.prototype.fields.map, | |
encSort = Ext.Array.map(sorters, function (sorter) { | |
return { | |
property : map[sorter.property].sorting || map[sorter.property].mapping || sorter.property, | |
direction: sorter.direction | |
}; | |
}); |
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
{ | |
"message": "", | |
"total": 1, | |
"success": true, | |
"rows": [ | |
{ | |
"lab_visit_id": "22", | |
"upddate": "02 Feb 2012 14:25:33", | |
"lab_id": "22", | |
"visit_date": "16 Nov 2009", |
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
/** | |
* @class Ext.data.NodeInterface | |
* This class is meant to be used as a set of methods that are applied to the prototype of a | |
* Record to decorate it with a Node API. This means that models used in conjunction with a tree | |
* will have all of the tree related methods available on the model. In general this class will | |
* not be used directly by the developer. This class also creates extra fields on the model if | |
* they do not exist, to help maintain the tree state and UI. These fields are: | |
* <ul> | |
* <li>parentId</li> | |
* <li>index</li> |