Last change
on this file since 619 was
619,
checked in by ramonb, 15 years ago
|
lib/:
- added new AJAX dependancies: ExtJS, pChart, Lightbox2
|
File size:
553 bytes
|
Rev | Line | |
---|
[619] | 1 | /* |
---|
| 2 | * Ext JS Library 2.2.1 |
---|
| 3 | * Copyright(c) 2006-2009, Ext JS, LLC. |
---|
| 4 | * licensing@extjs.com |
---|
| 5 | * |
---|
| 6 | * http://extjs.com/license |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | Ext.ns('App'); |
---|
| 10 | |
---|
| 11 | App.EmployeePropertyGrid = Ext.extend(Ext.grid.PropertyGrid, { |
---|
| 12 | load: function(config) { |
---|
| 13 | Ext.apply(config, { |
---|
| 14 | url: this.url, |
---|
| 15 | success: this.onLoad, |
---|
| 16 | scope: this |
---|
| 17 | }); |
---|
| 18 | Ext.Ajax.request(config); |
---|
| 19 | }, |
---|
| 20 | onLoad: function(response, opts) { |
---|
| 21 | var json = Ext.decode(response.responseText); |
---|
| 22 | this.setSource(json); |
---|
| 23 | } |
---|
| 24 | }); |
---|
| 25 | Ext.reg('employeepropertygrid', App.EmployeePropertyGrid); |
---|
Note: See
TracBrowser
for help on using the repository browser.