ZwiiCMS/core/module/theme/view/fontEdit/fontEdit.js.php

59 lines
1.7 KiB
PHP
Raw Normal View History

2022-03-11 16:09:43 +01:00
/**
* This file is part of Zwii.
* For full copyright and license information, please see the LICENSE
* file that was distributed with this source code.
*
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @copyright Copyright (C) 2018-2022, Frédéric Tempez
* @license GNU General Public License, version 3
* @link http://zwiicms.fr/
*/
2022-04-27 16:21:08 +02:00
/**
2022-03-13 10:09:49 +01:00
* Option par défaut du sélecteur de mode
*/
$(document).ready(function(){
if( $('input[name=fontEditFontImported]').is(':checked') ){
$('#containerfontEditFile').hide();
$('#containerfontEditUrl').show();
2022-04-27 16:21:08 +02:00
$('#fontEditFontFileWrapper').hide();
$('input[name=fontEditFontImported]').attr('disabled', 'disabled');
}
if( $('input[name=fontEditFontFile]').is(':checked') ){
$('#containerfontEditFile').show();
$('#containerfontEditUrl').hide();
2022-04-27 16:21:08 +02:00
$('#fontEditFontImportedWrapper').hide();
$('input[name=fontEditFontFile]').attr('disabled', 'disabled');
}
2022-03-13 10:09:49 +01:00
});
/**
* Mode téléchargement en ligne de la fonte ou installation locale
2022-04-27 16:21:08 +02:00
$("input, select").on("change", function() {
if( $('input[name=fontEditFontImported]').is(':checked') ){
$('input[name=fontEditFontFile]').prop('checked', false);
$('#containerfontEditFile').hide();
$('#containerfontEditUrl').show();
} else {
2022-04-27 16:21:08 +02:00
}
if( $('input[name=fontEditFontFile]').is(':checked') ){
$('input[name=fontEditFontImported]').prop('checked', false);
$('#containerfontEditFile').show();
$('#containerfontEditUrl').hide();
} else {
$('input[name=fontEditFontImported]').prop('checked', true);
}
2022-03-13 10:09:49 +01:00
});
2022-04-27 16:21:08 +02:00
*/