Changeset 280


Ignore:
Timestamp:
Mar 17, 2010, 3:42:48 PM (13 years ago)
Author:
duh
Message:
  • wizard error reporting resulted in overlapping error dialogs, the olders ones keeping reapearing. Now explicitely removing dialogs from the DOM when closing a dialog
Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/WizardController.groovy

    r279 r280  
    510510                                        this.appendErrorMap(['exception': e.toString() + ', see log for stacktrace' ], flash.errors)
    511511
    512                                         // debug line
    513                                         println e.printStackTrace()
     512                                        // stacktrace in flash scope
     513                                        flash.debug = e.getStackTrace()
    514514
    515515                                        println "rollback"
  • trunk/grails-app/views/wizard/common/_error.gsp

    r279 r280  
    3636
    3737                // show error dialog
    38                 $("div#wizardError").dialog({
     38                var we = $("div#wizardError");
     39                we.dialog({
    3940                        modal: true,
    4041                        width: 600,
     
    4243                                Ok: function() {
    4344                                        $(this).dialog('close');
     45                                        we.remove();
    4446                                }
    4547                        }
Note: See TracChangeset for help on using the changeset viewer.