diff --git a/scripts/mod_rewrite.js b/scripts/mod_rewrite.js index 521a65f..15230a9 100644 --- a/scripts/mod_rewrite.js +++ b/scripts/mod_rewrite.js @@ -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 { diff --git a/scripts/mod_rewrite.min.js b/scripts/mod_rewrite.min.js new file mode 100644 index 0000000..70a6846 --- /dev/null +++ b/scripts/mod_rewrite.min.js @@ -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()})})}}; \ No newline at end of file diff --git a/templates/content.html b/templates/content.html index 87de490..0b8f148 100644 --- a/templates/content.html +++ b/templates/content.html @@ -1,4 +1,4 @@ - + mod_rewrite_content @@ -7,7 +7,7 @@ - + diff --git a/templates/contentexpert.html b/templates/contentexpert.html index f672bbb..e19e0a7 100644 --- a/templates/contentexpert.html +++ b/templates/contentexpert.html @@ -1,4 +1,4 @@ - + mod_rewrite_content_expert @@ -6,7 +6,7 @@ - + diff --git a/templates/contenttest.html b/templates/contenttest.html index a0b3af2..8ac4506 100644 --- a/templates/contenttest.html +++ b/templates/contenttest.html @@ -1,4 +1,4 @@ - + mod_rewrite_content_test @@ -6,7 +6,7 @@ - +