User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:extensions:extensions:cbcolorizer [2016/09/10 02:00]
127.0.0.1 external edit
en:extensions:extensions:cbcolorizer [2017/02/15 14:43] (current)
omar
Line 96: Line 96:
 =====Special Customization::​Setup of dynamically changed formatting===== =====Special Customization::​Setup of dynamically changed formatting=====
  
-If you want to see any formatting changes happen directly after changing a value in DetailView, you have to add one line of code to the include/​js/​dtlviewajax.js file as can be seen in {{:​en:​extensions:​extensions:​cbcolorizer:​dtlajaxedit.diff|the next patch}}.+If you want to see any formatting changes happen directly after changing a value in DetailView, you have to add one line of code to the include/​js/​dtlviewajax.js file as can be seen in {{ :​en:​extensions:​extensions:​cbcolorizer:​dtlajaxedit.diff |the next patch}}.
  
 <code PHP> <code PHP>
 diff --git a/​include/​js/​dtlviewajax.js b/​include/​js/​dtlviewajax.js diff --git a/​include/​js/​dtlviewajax.js b/​include/​js/​dtlviewajax.js
-index d8b6679..9870ec2 ​100644+index d0f9222..85c941a ​100644
 --- a/​include/​js/​dtlviewajax.js --- a/​include/​js/​dtlviewajax.js
 +++ b/​include/​js/​dtlviewajax.js +++ b/​include/​js/​dtlviewajax.js
-@@ -287,6 +287,7 @@ function ​dtlViewAjaxSave(fieldLabel,​module,​uitype,​tableName,​fieldName,​crmId) +@@ -289,6 +289,7 @@ function ​dtlViewAjaxFinishSave(fieldLabel,​module,​uitype,​tableName,​fieldName,​crmI 
-  if(getObj(dtlView) != null) getObj(dtlView).innerHTML = "";​ +                                        if(getObj(dtlView) != null) getObj(dtlView).innerHTML = "";​ 
-  if(getObj("​comments"​) != null) getObj("​comments"​).value = "";​ +                                        if(getObj("​comments"​) != null) getObj("​comments"​).value = "";​ 
-  +                                
-+ colorizer_after_change(fieldName,​ tagValue);​ +                               if (typeof colorizer_after_change === "​function"​) { colorizer_after_change(fieldName,​ tagValue); ​} 
-  $("​vtbusy_info"​).style.display="​none";​ +                                ​document.getElementById("​vtbusy_info"​).style.display="​none";​ 
-  +                        
-  }</​code>​+                } 
 +</​code>​