Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Done
    • Trunk
    • None
    • themes

    Description

      At this time the function ajaxSubmitFormUpdateAreas present on themes/common-theme/webapp/common/js/util/OfbizUtil.js take a form, submit it thought ajax and wait a success to analyse a json result for update an area with the cvsAreaString given on paramater.

      I propose different imrpovements :

       * refactoring some js code to centralize the analyze of json result for check if the call is a success or error

       * Analyze the content-type of the response if is a json continue as before, else take the return and update first area (useful for submit search or filtering form)

       * Manage the case who the ajax call failed and we inform the user

       * Add a trigger to force the modal close on submit success

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nmalin Nicolas Malin
            nmalin Nicolas Malin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment