Private GIT

Skip to content
Snippets Groups Projects
Commit 59d0605d authored by Rabaa Ridene's avatar Rabaa Ridene
Browse files

#MON-707 : disable templates' fields

parent 197a26bb
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,11 @@ ...@@ -42,7 +42,11 @@
{else} {else}
<script> <script>
{literal} {literal}
jQuery(document).find("input[name^='macroInput'], input[name^='macroValue']").prop("type", 'text').attr('readonly', 'readonly'); jQuery(document).find("input[name^='macroInput'], " +
"input[name^='macroValue']")
.prop("type", 'text')
.attr('readonly', 'readonly')
.attr('disabled','disabled');
{/literal} {/literal}
</script> </script>
{/if} {/if}
......
...@@ -455,8 +455,6 @@ jQuery(function() { ...@@ -455,8 +455,6 @@ jQuery(function() {
jQuery(".onemacro").each(function(idx,elem){ jQuery(".onemacro").each(function(idx,elem){
var from = jQuery(elem).find('input[name^=macroFrom]').val(); var from = jQuery(elem).find('input[name^=macroFrom]').val();
if (from === "direct") { if (from === "direct") {
jQuery(elem).find("input[name^='macroInput']").css("background","white");
jQuery(elem).find("input[name^='macroValue']").css("background","white");
} else if(from === "fromTpl"){ } else if(from === "fromTpl"){
jQuery(elem).find("input[name^='macroInput']").css({'background-color' : '#ffcb6b',border : '1px solid #ffa600'}); jQuery(elem).find("input[name^='macroInput']").css({'background-color' : '#ffcb6b',border : '1px solid #ffa600'});
jQuery(elem).find("input[name^='macroValue']").css({'background-color' : '#ffcb6b',border : '1px solid #ffa600'}); jQuery(elem).find("input[name^='macroValue']").css({'background-color' : '#ffcb6b',border : '1px solid #ffa600'});
......
...@@ -488,8 +488,6 @@ jQuery(function() { ...@@ -488,8 +488,6 @@ jQuery(function() {
jQuery(".onemacro").each(function(idx, elem) { jQuery(".onemacro").each(function(idx, elem) {
var from = jQuery(elem).find('input[name^=macroFrom]').val(); var from = jQuery(elem).find('input[name^=macroFrom]').val();
if (from === "direct") { if (from === "direct") {
jQuery(elem).find("input[name^='macroInput']").css("background", "white");
jQuery(elem).find("input[name^='macroValue']").css("background", "white");
} else if (from === "fromTpl") { } else if (from === "fromTpl") {
jQuery(elem).find("input[name^='macroInput']").css({'background-color' : '#ffcb6b',border : '1px solid #ffa600'}); jQuery(elem).find("input[name^='macroInput']").css({'background-color' : '#ffcb6b',border : '1px solid #ffa600'});
jQuery(elem).find("input[name^='macroValue']").css({'background-color' : '#ffcb6b',border : '1px solid #ffa600'}); jQuery(elem).find("input[name^='macroValue']").css({'background-color' : '#ffcb6b',border : '1px solid #ffa600'});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment