Skip to content
Browse files

A few tiny changes to the test app

  • Loading branch information...
1 parent d624fda commit 6f0a56a9361d82a914e42da64fb597a03d31ed4c @elishnevsky committed Nov 12, 2012
Showing with 16 additions and 22 deletions.
  1. +16 −22 test/Ext.Direct.Mvc4Test/scripts/Main.js
View
38 test/Ext.Direct.Mvc4Test/scripts/Main.js
@@ -11,17 +11,14 @@ Ext.application({
Employed: true
};
- Basic.Echo("this is a basic demo", new Date(), contact, function (result, event) {
- var html;
- if (event.status == true) {
- html = [
- '<b>Echoed data</b><br/>',
- 'String: ' + result.text,
- 'Date: ' + Ext.Date.format(Ext.Date.parse(result.date, 'c'), 'l, F d, Y g:i:s A'),
- 'Contact: ' + Ext.encode(result.contact)
- ].join('<br/>');
- Ext.get('echoedData1').setDisplayed('block').update(html);
- }
+ Basic.Echo("this is a basic demo", new Date(), contact, function (result, response) {
+ var html = [
+ '<b>Echoed data</b><br/>',
+ 'String: ' + result.text,
+ 'Date: ' + Ext.Date.format(Ext.Date.parse(result.date, 'c'), 'l, F d, Y g:i:s A'),
+ 'Contact: ' + Ext.encode(result.contact)
+ ].join('<br/>');
+ Ext.get('echoedData1').setDisplayed('block').update(html);
});
});
@@ -38,17 +35,14 @@ Ext.application({
text: 'this is a named arguments demo'
};
- Basic.EchoNamedArgs(args, function (result, event) {
- var html;
- if (event.status == true) {
- html = [
- '<b>Echoed data</b><br/>',
- 'String: ' + result.text,
- 'Date: ' + Ext.Date.format(Ext.Date.parse(result.date, 'c'), 'l, F d, Y g:i:s A'),
- 'Contact: ' + Ext.encode(result.contact)
- ].join('<br/>');
- Ext.get('echoedData2').setDisplayed('block').update(html);
- }
+ Basic.EchoNamedArgs(args, function (result, response) {
+ var html = [
+ '<b>Echoed data</b><br/>',
+ 'String: ' + result.text,
+ 'Date: ' + Ext.Date.format(Ext.Date.parse(result.date, 'c'), 'l, F d, Y g:i:s A'),
+ 'Contact: ' + Ext.encode(result.contact)
+ ].join('<br/>');
+ Ext.get('echoedData2').setDisplayed('block').update(html);
});
});

0 comments on commit 6f0a56a

Please sign in to comment.
Something went wrong with that request. Please try again.