ColumnManagerSetting.js 969 B

1234567891011121314151617181920
  1. MWF.xDesktop.requireApp("cms.ColumnManager", "widget.ColumnViewerSetting", null, false);
  2. MWF.xApplication.cms.ColumnManager.ColumnManagerSetting = new Class({
  3. Extends: MWF.xApplication.cms.ColumnManager.ColumnViewerSetting,
  4. listData: function( callback ){
  5. this.app.restActions.listAppInfoManagers(this.options.objectId, function(json){
  6. this.data = json.data;
  7. if( callback )callback( json );
  8. }.bind(this), null ,false)
  9. },
  10. saveData: function( data, callback ){
  11. this.app.restActions.saveAppInfoManager(this.options.objectId, data, function (json) {
  12. this.app.restActions.getColumn( this.options.objectId, function( js ){
  13. this.dataParent.data = js.data;
  14. this.app.options.column = js.data;
  15. this.app.options.application = js.data;
  16. if( callback )callback( json );
  17. }.bind(this));
  18. }.bind(this), null, false);
  19. }
  20. });