forked from ZwiiCMS-Team/ZwiiCMS
font edit restriction activation
This commit is contained in:
parent
cad736d74b
commit
a659521c29
@ -17,12 +17,17 @@
|
||||
if( $('input[name=fontEditFontImported]').is(':checked') ){
|
||||
$('#containerfontEditFile').hide();
|
||||
$('#containerfontEditUrl').show();
|
||||
$('#fontEditFontFileWrapper').hide();
|
||||
$('input[name=fontEditFontImported]').attr('disabled', 'disabled');
|
||||
|
||||
}
|
||||
|
||||
|
||||
if( $('input[name=fontEditFontFile]').is(':checked') ){
|
||||
$('#containerfontEditFile').show();
|
||||
$('#containerfontEditUrl').hide();
|
||||
$('#fontEditFontImportedWrapper').hide();
|
||||
$('input[name=fontEditFontFile]').attr('disabled', 'disabled');
|
||||
}
|
||||
|
||||
});
|
||||
@ -30,7 +35,7 @@
|
||||
|
||||
/**
|
||||
* Mode téléchargement en ligne de la fonte ou installation locale
|
||||
*/
|
||||
|
||||
$("input, select").on("change", function() {
|
||||
|
||||
if( $('input[name=fontEditFontImported]').is(':checked') ){
|
||||
@ -38,7 +43,7 @@
|
||||
$('#containerfontEditFile').hide();
|
||||
$('#containerfontEditUrl').show();
|
||||
} else {
|
||||
$('input[name=fontEditFontFile]').prop('checked', true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -51,3 +56,4 @@
|
||||
}
|
||||
|
||||
});
|
||||
*/
|
Loading…
Reference in New Issue
Block a user