1
0
Fork 0

Fix #3 - js toggle of editfields on config page

Dieser Commit ist enthalten in:
o.pinke 2022-03-11 19:05:02 +01:00
Ursprung f0585f18c2
Commit cc813c18d9
5 geänderte Dateien mit 10 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -43,7 +43,7 @@ var mrPlugin = {
initializeSettingsPage: function() {
$(document).ready(function() {
$("#mr_use_language").change(function() {
if (true == $(this).attr("checked")) {
if (true == $(this).prop("checked")) {
$("#mr_use_language_name").removeAttr("disabled");
} else {
$("#mr_use_language_name").attr("disabled", "disabled");
@ -51,7 +51,7 @@ var mrPlugin = {
});
$("#mr_use_client").change(function() {
if (true == $(this).attr("checked")) {
if (true == $(this).prop("checked")) {
$("#mr_use_client_name").removeAttr("disabled");
} else {
$("#mr_use_client_name").attr("disabled", "disabled");
@ -59,7 +59,7 @@ var mrPlugin = {
});
$("#mr_add_startart_name_to_url").change(function() {
if (true == $(this).attr("checked")) {
if (true == $(this).prop("checked")) {
$("#mr_default_startart_name").removeAttr("disabled")
.removeClass("disabled");
} else {

1
scripts/mod_rewrite.min.js gevendort Normale Datei
Datei anzeigen

@ -0,0 +1 @@
var mrPlugin={lng:{more_informations:"More informations"},toggle:function(a){$("#"+a).slideToggle("slow")},showReadme:function(){},initializeSettingsPage:function(){$(document).ready(function(){$("#mr_use_language").change(function(){if(true==$(this).prop("checked")){$("#mr_use_language_name").removeAttr("disabled")}else{$("#mr_use_language_name").attr("disabled","disabled")}});$("#mr_use_client").change(function(){if(true==$(this).prop("checked")){$("#mr_use_client_name").removeAttr("disabled")}else{$("#mr_use_client_name").attr("disabled","disabled")}});$("#mr_add_startart_name_to_url").change(function(){if(true==$(this).prop("checked")){$("#mr_default_startart_name").removeAttr("disabled").removeClass("disabled")}else{$("#mr_default_startart_name").attr("disabled","disabled").addClass("disabled")}});mrPlugin._initializeTooltip()})},initializeExterpPage:function(){$(document).ready(function(){mrPlugin._initializeTooltip()})},_initializeTooltip:function(){$(".mrPlugin a.i-link").each(function(){$(this).attr("href","javascript:void(0);");$(this).attr("title",mrPlugin.lng.more_informations);var a=$(this).attr("id").substring(0,$(this).attr("id").indexOf("-link"));$(this).aToolTip({clickIt:true,xOffset:-20,yOffset:4,outSpeed:250,tipContent:$("#"+a).html()})})}};

Datei anzeigen

@ -1,4 +1,4 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!DOCTYPE HTML>
<html>
<head>
<title>mod_rewrite_content</title>
@ -7,7 +7,7 @@
<meta http-equiv="pragma" content="no-cache">
<script type="text/javascript" src="scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="plugins/cl-mod-rewrite/external/aToolTip/js/atooltip.jquery.js"></script>
<script type="text/javascript" src="plugins/cl-mod-rewrite/scripts/mod_rewrite.js"></script>
<script type="text/javascript" src="plugins/cl-mod-rewrite/scripts/mod_rewrite.min.js?20220311"></script>
<link rel="stylesheet" type="text/css" href="styles/contenido.css">
<link rel="stylesheet" type="text/css" href="plugins/cl-mod-rewrite/external/aToolTip/css/atooltip.css">
<link rel="stylesheet" type="text/css" href="plugins/cl-mod-rewrite/styles/styles.css">

Datei anzeigen

@ -1,4 +1,4 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!DOCTYPE HTML>
<html>
<head>
<title>mod_rewrite_content_expert</title>
@ -6,7 +6,7 @@
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<script type="text/javascript" src="scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="plugins/cl-mod-rewrite/scripts/mod_rewrite.js"></script>
<script type="text/javascript" src="plugins/cl-mod-rewrite/scripts/mod_rewrite.min.js?20220311"></script>
<script type="text/javascript" src="plugins/cl-mod-rewrite/external/aToolTip/js/atooltip.jquery.js"></script>
<link rel="stylesheet" type="text/css" href="styles/contenido.css">
<link rel="stylesheet" type="text/css" href="plugins/cl-mod-rewrite/external/aToolTip/css/atooltip.css">

Datei anzeigen

@ -1,4 +1,4 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!DOCTYPE HTML>
<html>
<head>
<title>mod_rewrite_content_test</title>
@ -6,7 +6,7 @@
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<script type="text/javascript" src="scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="plugins/cl-mod-rewrite/scripts/mod_rewrite.js"></script>
<script type="text/javascript" src="plugins/cl-mod-rewrite/scripts/mod_rewrite.min.js?20220311"></script>
<link rel="stylesheet" type="text/css" href="styles/contenido.css">
<link rel="stylesheet" type="text/css" href="plugins/cl-mod-rewrite/styles/styles.css">
<script type="text/javascript"><!--