[Checkins] SVN: zc.extjs/branches/dev/src/zc/extjs/resources/util.js Fixed small scoping bug for 'Cancel' button in standalone form panels.

Gintautas Miliauskas gintas at pov.lt
Thu Apr 3 17:35:50 EDT 2008


Log message for revision 85082:
  Fixed small scoping bug for 'Cancel' button in standalone form panels.
  

Changed:
  U   zc.extjs/branches/dev/src/zc/extjs/resources/util.js

-=-
Modified: zc.extjs/branches/dev/src/zc/extjs/resources/util.js
===================================================================
--- zc.extjs/branches/dev/src/zc/extjs/resources/util.js	2008-04-03 21:32:57 UTC (rev 85081)
+++ zc.extjs/branches/dev/src/zc/extjs/resources/util.js	2008-04-03 21:35:50 UTC (rev 85082)
@@ -106,13 +106,14 @@
             params: args.params,
             task: "Loading form definition",
             success: function (result) {
+                var formpanel;
                 var form_config = {
                     autoHeight: true,
                     buttons: [{
                         text: 'Cancel',
                         handler: function ()
                         {
-                            form_reset(form_config.form, result.data);
+                            form_reset(formpanel, result.data);
                         }
                     }]
                 };
@@ -125,7 +126,7 @@
                     form_config = Ext.apply(form_config, args.form_config);
                 }
 
-                var formpanel = zc.extjs.util.new_form({
+                formpanel = zc.extjs.util.new_form({
                     definition: result.definition,
                     config: form_config,
                     after: function (form, action)



More information about the Checkins mailing list