コード例 #1
0
 /**
  * @covers getModalDetailsTitle
  */
 public function testGetModalDetailsTitle()
 {
     $title = TasksUtil::getModalDetailsTitle();
     $this->assertEquals('Collaborate On This Task', $title);
 }
コード例 #2
0
 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);
 }