Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <select onchange="SUGAR.email2.composeLayout.applyEmailTemplate('0',
  2. this.options[this.selectedIndex].value);" id="email_template0" name="email_template0">
  3.  
  4. <option value="">-none-</option>
  5. <option value="159a06ef-4d58-6eff-a969-52fdff05d328">Case Closure</option>
  6. <option value="182641ab-44c0-719d-04b3-52fdffa2b2d2">Case Creation</option>
  7. </select>
  8.  
  9. $(document).on('DOMNodeInserted', '#composeHeaderTable0', function(event) {
  10. $("#email_template0 option[value='159a06ef-4d58-6eff-a969-52fdff05d328']").hide();
  11. });
  12.  
  13. $(document).bind('DOMNodeInserted', '#composeHeaderTable0', function(event) {
  14.  
  15. $(document).on('DOMNodeInserted', '#composeHeaderTable0', function(event) {
  16.  
  17. $(document).bind('DOMNodeInserted', '#composeHeaderTable0', function(event) {
  18. if ($('#data_parent_type0').val() == 'Leads') {
  19. $("#email_template0 option[value='159a06ef-4d58-6eff-a969-52fdff05d328']").hide();
  20. }
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement