Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
en:extensions:colorizer:documentation:customizations [2013/12/18 11:50]
swarnat
en:extensions:colorizer:documentation:customizations [2013/12/18 12:04]
swarnat [Show colors in ListView]
Line 28: Line 28:
  
 == 4. Repeat this modification also in /​Smarty/​Templates/​Inventory/​InventoryDetailView.tpl == == 4. Repeat this modification also in /​Smarty/​Templates/​Inventory/​InventoryDetailView.tpl ==
 +\\
  
 ==== Setup of dynamically changed color ==== ==== Setup of dynamically changed color ====
  
-==== Show colors in ListView ​ ====+If you would see any colors directly after changes of a value in DetailView, you have to insert these two snippets into one vtiger Core file. 
 +== 1. Open: /​includes/​js/​dtlviewajax.js ​== 
 +== 2. Search: == 
 +<code js> 
 +if(module == '​Users'​) { 
 +  data += "&​form_token="​ + (document.getElementsByName('​form_token'​)[0].value);​ 
 +
 +</​code>​ 
 +== 3. Insert after this lines: == 
 +<code js> 
 +colorizerNewTagValue = tagValue; 
 +</​code>​ 
 +== 4. Search: == 
 +  else if(response.responseText.indexOf(":#:​SUCCESS"​)>​-1) { 
 +== 5. At the end of this block == 
 +//(directly after $(“vtbusy_info”).style.display=”none”;​ )// 
 +== INSERT: ​== 
 +<code php> 
 +/** SWARNAT EDIT START **/ 
 +colorizer_after_change(fieldName,​ colorizerNewTagValue);​ 
 +/** SWARNAT EDIT ENDE **/ 
 +</​code>​ 
 +Now all settings will be applied directly. 
 +\\