Check que quelque chose est sélection dans l'ajout d'un sous-domaine
This commit is contained in:
parent
e54bec91d4
commit
e7c362ec12
|
@ -109,7 +109,7 @@ $dom->unlock();
|
||||||
<?php } // foreach ?>
|
<?php } // foreach ?>
|
||||||
|
|
||||||
<tr class="trbtn">
|
<tr class="trbtn">
|
||||||
<td colspan="2"><input type="submit" class="inb" name="add" value="<?php
|
<td colspan="2"><input type="submit" class="inb" name="add" onclick='return check_type_selected();' value="<?php
|
||||||
if ($isedit) {
|
if ($isedit) {
|
||||||
__("Edit this subdomain");
|
__("Edit this subdomain");
|
||||||
} else {
|
} else {
|
||||||
|
@ -121,6 +121,16 @@ $dom->unlock();
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function check_type_selected() {
|
||||||
|
if ( $('input[name=type]:radio:checked').val() ) {
|
||||||
|
// there is a value
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
alert("<?php __("Please select a type for this sub-domain"); ?>");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
function domtype_advanced_hide() {
|
function domtype_advanced_hide() {
|
||||||
<?php foreach ($lst_advanced as $adv) echo "$(\"#tr_$adv\").hide();\n"?>
|
<?php foreach ($lst_advanced as $adv) echo "$(\"#tr_$adv\").hide();\n"?>
|
||||||
$("#domtype_show").show();
|
$("#domtype_show").show();
|
||||||
|
|
Loading…
Reference in New Issue