Skip to content

Commit

Permalink
Fixes #9342: Error when trying to create a new Parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelGauthier committed Oct 18, 2016
1 parent 042a70f commit b7f18d3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ class ParameterManagement extends DispatchSnippet with Loggable {

private[this] def workflowCallBack(action:String, workflowEnabled: Boolean)(returns : Either[GlobalParameter,ChangeRequestId]) : JsCmd = {
if ((!workflowEnabled) & (action == "delete")) {
JsRaw("$.modal.close();") & onSuccessDeleteCallback(workflowEnabled)
closePopup() & onSuccessDeleteCallback(workflowEnabled)
} else {
returns match {
case Left(param) => // ok, we've received a parameter, do as before
JsRaw("$.modal.close();") & updateGrid(workflowEnabled) & successPopup
closePopup() & updateGrid(workflowEnabled) & successPopup
case Right(changeRequestId) => // oh, we have a change request, go to it
JsInitContextLinkUtil.redirectToChangeRequestLink(changeRequestId)
}
Expand Down Expand Up @@ -288,7 +288,7 @@ class ParameterManagement extends DispatchSnippet with Loggable {


private[this] def closePopup() : JsCmd = {
JsRaw(""" $.modal.close();""")
JsRaw(""" $('.modal').bsModal('hide');""")
}


Expand Down

0 comments on commit b7f18d3

Please sign in to comment.