1
0
Fork 0

Config / E-Mail:

- added delete message when deleting an e-mail recipient
Dieser Commit ist enthalten in:
DSB 2011-09-04 10:45:52 +00:00
Ursprung 6072297b26
Commit d8c714ce28
2 geänderte Dateien mit 7 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -49,7 +49,7 @@ class Application_Form_Config_Email extends Zend_Form_SubForm
$this->_addSender(); $this->_addSender();
$this->_addRecipient(); $this->_addRecipient();
$this->_addButtonAddRecipientCc(); $this->_addButtonAddRecipientCc();
// add Recipients CC // add Recipients CC
$ccElements = $this->_setRecipientCc( $ccElements = $this->_setRecipientCc(
$this->_config->get('config.email.RecipientCc') $this->_config->get('config.email.RecipientCc')
@ -57,7 +57,7 @@ class Application_Form_Config_Email extends Zend_Form_SubForm
$this->_addAttachement(); $this->_addAttachement();
$this->_addEmailProgram(); $this->_addEmailProgram();
// create and add display group // create and add display group
$elements = array( $elements = array(
'sendEmail', 'sendEmail',
@ -201,7 +201,7 @@ class Application_Form_Config_Email extends Zend_Form_SubForm
*/ */
private function _addRecipient() private function _addRecipient()
{ {
//Recipient email //Recipient email
$this->addElement( $this->addElement(
'text', 'text',
@ -279,7 +279,6 @@ class Application_Form_Config_Email extends Zend_Form_SubForm
} }
$elements = array(); $elements = array();
#$i = 0;
foreach ($recipientsCc as $i => $recipient) { foreach ($recipientsCc as $i => $recipient) {
//Recipient CC email //Recipient CC email
$this->addElement( $this->addElement(
@ -333,8 +332,8 @@ class Application_Form_Config_Email extends Zend_Form_SubForm
'label' => '', 'label' => '',
'class' => 'Formbutton emailToggle', 'class' => 'Formbutton emailToggle',
'onclick' => 'onclick' =>
'if (!confirm(\'Ha\')) return false;' 'if (!confirm("' . $confirmDelete . '")) return false;'
.' deleteEmailRecipientCc(\'' . $i .'\');', .' deleteEmailRecipientCc(' . $i .');',
) )
); );
@ -346,7 +345,6 @@ class Application_Form_Config_Email extends Zend_Form_SubForm
'DeleteCc_'.$i, 'DeleteCc_'.$i,
) )
); );
$i++;
} }
return $elements; return $elements;
} }
@ -550,7 +548,7 @@ class Application_Form_Config_Email extends Zend_Form_SubForm
} }
$values['RecipientCc'] = array_values($newArray); $values['RecipientCc'] = array_values($newArray);
return $values; return $values;
} }

Datei anzeigen

@ -248,6 +248,7 @@ $this->jQuery()->onLoadCaptureStart();
$('.tableCheckbox').change(function() { $('.tableCheckbox').change(function() {
checkButtonState(); checkButtonState();
}); });
checkButtonState();
<?php <?php
$this->jQuery()->onLoadCaptureEnd(); $this->jQuery()->onLoadCaptureEnd();
?> ?>
@ -261,5 +262,4 @@ function checkButtonState() {
objs_disable(objs); objs_disable(objs);
} }
} }
checkButtonState();
</script> </script>