update.js 1010 B

123456789101112131415161718192021222324252627282930313233
  1. GAL.page.UpdateAlbum = function(config) {
  2. config = config || {};
  3. Ext.applyIf(config,{
  4. formpanel: 'gal-panel-album'
  5. ,buttons: [{
  6. text: _('save')
  7. ,id: 'gal-btn-save'
  8. ,cls: 'primary-button'
  9. ,process: 'mgr/album/update'
  10. ,method: 'remote'
  11. ,keys: [{
  12. key: 's'
  13. ,alt: true
  14. ,ctrl: true
  15. }]
  16. },'-',{
  17. text: _('gallery.back')
  18. ,id: 'gal-btn-back'
  19. ,handler: function() {
  20. location.href = '?a='+MODx.request.a+'&view=index';
  21. }
  22. ,scope: this
  23. }]
  24. ,components: [{
  25. xtype: 'gal-panel-album'
  26. ,renderTo: 'gal-panel-album-div'
  27. ,album: MODx.request.album
  28. }]
  29. });
  30. GAL.page.UpdateAlbum.superclass.constructor.call(this,config);
  31. };
  32. Ext.extend(GAL.page.UpdateAlbum,MODx.Component);
  33. Ext.reg('gal-page-album-update',GAL.page.UpdateAlbum);