[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6835] trunk/UI/lib/Loader.js
- Subject: SF.net SVN: ledger-smb:[6835] trunk/UI/lib/Loader.js
- From: ..hidden..
- Date: Mon, 10 Feb 2014 15:07:29 +0000
Revision: 6835
http://sourceforge.net/p/ledger-smb/code/6835
Author: einhverfr
Date: 2014-02-10 15:07:25 +0000 (Mon, 10 Feb 2014)
Log Message:
-----------
Adding async calls regarding the account selector to set the value. This hasn't fixed the problem of default values not being retained. I suspect what is happening is that it is getting set before the store is initialized.
Modified Paths:
--------------
trunk/UI/lib/Loader.js
Modified: trunk/UI/lib/Loader.js
===================================================================
--- trunk/UI/lib/Loader.js 2014-02-10 14:17:57 UTC (rev 6834)
+++ trunk/UI/lib/Loader.js 2014-02-10 15:07:25 UTC (rev 6835)
@@ -134,11 +134,19 @@
require(['lsmb/accounts/AccountSelector',
'dojo/ready'],
function(accountselector, ready){
+ var value = input.value;
ready(function(){
+ console.log(input);
return new accountselector({
- "name": input.name
+ "name": input.name,
+ "value": value
}, input);
});
+ ready(function(){
+ var widget = registry.byId(input.id);
+ console.log(widget);
+ widget.set('value', value);
+ });
});
},
'__default': function(input){
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits