protected function registerScripts()
 {
     parent::registerScripts();
     $script = '
             $(".remove-dynamic-row-link.' . TimeTriggerForWorkflowForm::getType() . '").live("click", function()
             {
                 $(this).parent().remove();
                 $("#ByTimeWorkflowWizardForm_timeTriggerAttribute").val("");
                 $(".NoTimeTrigger").show();
                 $("#time-trigger-container").hide();
                 return false;
             });
         ';
     Yii::app()->getClientScript()->registerScript('TimeTriggerForWorkflowComponentScript', $script);
 }
 public function registerScripts()
 {
     parent::registerScripts();
     $this->registerRemoveEmailMessageScript();
     $this->registerRemoveEmailMessageRecipientScript();
 }
 /**
  * Register scripts needed for this view
  */
 public function registerScripts()
 {
     parent::registerScripts();
     $this->registerActionTypeDropDownOnChangeScript();
     $this->registerActionTypeRelationDropDownOnChangeScript();
     $this->registerActionTypeRelatedModelRelationDropDownOnChangeScript();
     $this->registerAddActionScript();
     $this->registerRemoveActionScript();
     $this->registerTypeChangeScript();
     $this->registerRowEditScript();
 }
 protected function registerScripts()
 {
     parent::registerScripts();
     $script = '
             $(".droppable-dynamic-rows-container.' . static::getTreeType() . '").live("drop", function(event, ui)
             {
                 ' . $this->getAjaxForDroppedAttribute() . '
             });
             $(".item-to-place", "#' . static::getTreeType() . 'TreeArea").live("dblclick", function(event)
             {
                 ' . $this->getAjaxForDoubleClickedAttribute() . '
             });
             $(".remove-dynamic-row-link.' . static::getTreeType() . '").live("click", function()
             {
                 size = $(this).parent().parent().parent().find("li").size();
                 $(this).parent().parent().remove(); //removes the <li>
                 if (size < 2)
                 {
                     $(".' . static::getZeroComponentsClassName() . '").show();
                 }
                 ' . $this->getWorkflowAttributeRowAddOrRemoveExtraScript() . '
                 return false;
             });
         ';
     Yii::app()->getClientScript()->registerScript(static::getTreeType() . 'WorkflowComponentForTreeScript', $script);
 }