Ignore:
Timestamp:
03/09/14 14:23:42 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Enable/disable buttons on content change.
  • One place to do date formatting, because it was going wrong again.
  • Serialize questions in survey properly.
  • _ComplexValueMixin consumes submit events, but does trigger outer forms if present.
  • Trigger dialog show/hide for login only after previous effect is finished.
  • Check that documents are actually valid, not just that validator returned a result.
  • Validate email and timestamp formats.
  • Prepared for live runs.
Location:
Dev/trunk/src/client/qed-client/ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/ui/LoginDialogWrapper.coffee

    r487 r492  
    99    "dojo/_base/lang",
    1010    "dojo/on",
     11    "dojo/when",
    1112    "dojo/text!./templates/LoginDialogWrapper.html"
    1213], (session, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin,
    13     registry, declare, event, lang, _on, template) ->
     14    registry, declare, event, lang, _on, _when, template) ->
    1415    declare [_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin],
    1516        templateString: template
     17        _fx: null
    1618        startup: () ->
    1719            if @_started then return
     
    2527                              value.password
    2628                .then () =>
    27                     @loginDialog.hide()
     29                    @_fx = _when(@_fx)
     30                    .then () =>
     31                        @loginDialog.hide()
    2832                , () =>
    2933                    alert "Login failed!"
     
    3135            false
    3236        onUserChange: (user) ->
    33             if user
    34                 @loginDialog.hide()
    35             else
    36                 @loginDialog.show()
     37            @_fx = _when(@_fx)
     38            .then () =>
     39                if user
     40                    @loginDialog.hide()
     41                else
     42                    @loginDialog.show()
    3743            null
  • Dev/trunk/src/client/qed-client/ui/templates/LoginDialogWrapper.html

    r468 r492  
    2525            <div data-dojo-type="dijit/form/Button"
    2626                 type="submit"
    27                  data-dojo-attach-event="onLogin">Login</div>
     27                 data-dojo-attach-event="onClick:onLogin">Login</div>
    2828        </form>
    2929    </div>
Note: See TracChangeset for help on using the changeset viewer.