Fix #1388
This commit is contained in:
		
							parent
							
								
									769d090705
								
							
						
					
					
						commit
						14632cec3c
					
				| 
						 | 
					@ -126,6 +126,17 @@ $dom->unlock();
 | 
				
			||||||
function check_type_selected() {
 | 
					function check_type_selected() {
 | 
				
			||||||
  if ( $('input[name=type]:radio:checked').val() ) {
 | 
					  if ( $('input[name=type]:radio:checked').val() ) {
 | 
				
			||||||
    // there is a value
 | 
					    // there is a value
 | 
				
			||||||
 | 
					    var ll = $('input[name=type]:radio:checked').val();
 | 
				
			||||||
 | 
					    var tt = $('#t_'+ll);
 | 
				
			||||||
 | 
					    if ( tt.length == 0 ) {
 | 
				
			||||||
 | 
					      // this element do not exist, so OK
 | 
				
			||||||
 | 
					      return true;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    if ( tt.val() == '' ) {
 | 
				
			||||||
 | 
					      alert("<?php __("Missing value for this sub-domain"); ?>");
 | 
				
			||||||
 | 
					      return false;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  alert("<?php __("Please select a type for this sub-domain"); ?>");
 | 
					  alert("<?php __("Please select a type for this sub-domain"); ?>");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,16 +72,19 @@ function dnsoff() {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function destruction_alert() {
 | 
					function destruction_alert() {
 | 
				
			||||||
	// On ne se pose pas de question si le DNS est deja sur NON
 | 
					  // On ne se pose pas de question si le DNS est deja sur NON
 | 
				
			||||||
	if (<?php echo (int)$r["dns"]; ?>!=1) {
 | 
					  if (<?php echo (int)$r["dns"]; ?>!=1) {
 | 
				
			||||||
		return true;
 | 
					    return true;
 | 
				
			||||||
	}
 | 
					  }
 | 
				
			||||||
	if (document.forms["fdns"].email[1].checked) {
 | 
					  if (document.forms["fdns"].email[1].checked) {
 | 
				
			||||||
		if ( confirm('<?php __("Are you sure you want to do this? This will DELETE ALL the mailboxes, messages and aliases on this domain ?"); ?>') ) {
 | 
					    if ( confirm("<?php __("Are you sure you want to do this? This will DELETE ALL the mailboxes, messages and aliases on this domain ?"); ?>") ) {
 | 
				
			||||||
		  return false;
 | 
					      return true;
 | 
				
			||||||
	} else {
 | 
					    } else {
 | 
				
			||||||
		  return true;
 | 
					      return false;
 | 
				
			||||||
	}
 | 
					    }
 | 
				
			||||||
 | 
					  } else {
 | 
				
			||||||
 | 
					      return true;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
<h3><?php printf(_("Editing subdomains of %s"),$domain); ?></h3>
 | 
					<h3><?php printf(_("Editing subdomains of %s"),$domain); ?></h3>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -58,6 +58,6 @@ $dom->unlock();
 | 
				
			||||||
// XXX: we assume the cron job is at every 5 minutes
 | 
					// XXX: we assume the cron job is at every 5 minutes
 | 
				
			||||||
  print strtr(_("The modifications will take effect at %time.  Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300)))); 
 | 
					  print strtr(_("The modifications will take effect at %time.  Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300)))); 
 | 
				
			||||||
?><br /><br />
 | 
					?><br /><br />
 | 
				
			||||||
<span class="ina"><a href="login.php" target="_top"><?php __("Click here to continue"); ?></a></span>
 | 
					<span class="ina"><a href="dom_edit.php?domain=<?php echo urlencode($domain) ?>" ><?php __("Click here to continue"); ?></a></span>
 | 
				
			||||||
</p>
 | 
					</p>
 | 
				
			||||||
<?php include_once("foot.php"); ?>
 | 
					<?php include_once("foot.php"); ?>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue