Merge lp:~methanal-developers/methanal/824522-patient-lookup into lp:methanal

Proposed by Jonathan Jacobs
Status: Merged
Approved by: Tristan Seligmann
Approved revision: 187
Merged at revision: 187
Proposed branch: lp:~methanal-developers/methanal/824522-patient-lookup
Merge into: lp:methanal
Diff against target: 35 lines (+7/-2)
2 files modified
methanal/js/Methanal/View.js (+3/-0)
methanal/js/Methanal/Widgets.js (+4/-2)
To merge this branch: bzr merge lp:~methanal-developers/methanal/824522-patient-lookup
Reviewer Review Type Date Requested Status
Tristan Seligmann Approve
Review via email: mp+71210@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Tristan Seligmann (mithrandi) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'methanal/js/Methanal/View.js'
2--- methanal/js/Methanal/View.js 2011-07-21 20:19:58 +0000
3+++ methanal/js/Methanal/View.js 2011-08-11 14:23:23 +0000
4@@ -374,6 +374,7 @@
5 * attributes.
6 */
7 function formInit(self) {
8+ self._waitForForm = Divmod.Defer.Deferred();
9 self._frozen = 0;
10 self.controls = {};
11 self.subforms = {};
12@@ -557,6 +558,8 @@
13 self._stripeControls();
14 // Thaw freeze from formInit.
15 self.thaw();
16+ self._waitForForm.callback(null);
17+ self._waitForForm = Divmod.Defer.succeed(null);
18 self.formLoaded();
19
20 if (self.viewOnly && self.actions) {
21
22=== modified file 'methanal/js/Methanal/Widgets.js'
23--- methanal/js/Methanal/Widgets.js 2011-07-13 12:58:09 +0000
24+++ methanal/js/Methanal/Widgets.js 2011-08-11 14:23:23 +0000
25@@ -1110,8 +1110,10 @@
26
27 function formLoaded(self, form) {
28 self._lookupForm = form;
29- self._waitForForm.callback(null);
30- self._waitForForm = Divmod.Defer.succeed(null);
31+ self.getForm()._waitForForm.addCallback(function () {
32+ self._waitForForm.callback(null);
33+ self._waitForForm = Divmod.Defer.succeed(null);
34+ });
35 },
36
37

Subscribers

People subscribed via source and target branches

to all changes: