protected function renderConfigSaveAjax($formId, $url, $sourceKanbanBoardId, $modalId, $sourceId) { // Begin Not Coding Standard if ($sourceId == null) { $kanbanRefreshScript = TasksUtil::resolveExtraCloseScriptForModalAjaxOptions($sourceKanbanBoardId); } else { $kanbanRefreshScript = TasksUtil::resolveExtraCloseScriptForModalAjaxOptions($sourceId); } $title = TasksUtil::getModalDetailsTitle(); // Begin Not Coding Standard $options = array('type' => 'POST', 'data' => 'js:$("#' . $formId . '").serialize()', 'url' => $url, 'update' => '#' . $modalId, 'complete' => "function(XMLHttpRequest, textStatus){\n \$('#" . $modalId . "').dialog('option', 'title', '" . $title . "');\n " . $kanbanRefreshScript . "}"); // End Not Coding Standard return ZurmoHtml::ajax($options); }