Ticket #1245 (closed defect: fixed)

Opened 5 days ago

Last modified 4 days ago

checkboxes in add_mail_acc.tpl

Reported by: nciftci Assigned to:
Priority: minor Milestone: ispCP ω 1.0.0 - RC5
Component: Frontend (GUI) Version: ispCP ω 1.0.0 - RC4
Severity: Easy Keywords:
Cc:

Description

You can select both "forward mail" and "normal mail" type in add_mail_acc.tpl. You must select one of them. When you select both, mail type status shows unknown. It must be radio button or you can add js code to act like radio buttons.

This simple javascript code that checkboxes acting like radio buttons.

// js function start

function switchCheckbox( objChecked, objUnchecked ) {

objChecked.checked = true; objUnchecked.checked = false;

if ( objChecked.checked = true ) {

objUnchecked.checked = false;

} else if ( objChecked.checked = false ) {

objUnchecked.checked = true;

}

}

// end

in add_mail_acc.tpl change modified lines.

<input type="checkbox" name="mail_type_forward" value="1" {FORWARD_MAIL_CHECKED} onClick="switchCheckbox(this.form.mail_type_forward,this.form.mail_type_normal); changeType();">

<input type="checkbox" name="mail_type_normal" value="1" onClick="switchCheckbox(this.form.mail_type_normal,this.form.mail_type_forward); changeType();" {NORMAL_MAIL_CHECKED}>

Attachments

Change History

(follow-up: ↓ 3 ) 05/11/2008 11:02:17 PM changed by Cube

It should be possible to check both (forward mail and normal mail) and on Debian, revison 1145 it works. If you get an error give more info about your system.

05/12/2008 01:03:21 AM changed by Cube

Did you perhaps forgot to enter a password, this could have caused the error (see ticket #1243). Check also status-field in DB.

(in reply to: ↑ 1 ) 05/12/2008 04:50:57 PM changed by rats

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone changed from Working to ispCP ω 1.0.0 - RC5.

Replying to Cube:

It should be possible to check both (forward mail and normal mail) and on Debian, revison 1145 it works. If you get an error give more info about your system.

So it should work; I'll close it, if not or not replied to #1243, please reopen


Add/Change #1245 (checkboxes in add_mail_acc.tpl)




Action