~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/js/dynamic_custom_field.tpl.js

  • Committer: Elan Ruusamäe
  • Date: 2015-04-03 17:16:08 UTC
  • Revision ID: glen@delfi.ee-20150403171608-u41tcmt49uayv0g4
discard {literal} from templates

it is rarely needed in Smarty3

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
        {/foreach}
24
24
    {/foreach}
25
25
{/foreach}
26
 
{literal}
 
26
 
27
27
function custom_field_get_details_by_controller(controller_id)
28
28
{
29
29
    var details = [];
69
69
    var target_id = e.data;
70
70
    var details = custom_field_get_details_by_target(target_id);
71
71
 
72
 
    alert('{/literal}{t escape=js}Please choose{/t} ' + details.controlling_field_name + ' {t}first{/t}{literal}');
 
72
    alert('{t escape=js}Please choose{/t} ' + details.controlling_field_name + ' {t}first{/t}');
73
73
 
74
74
    target_field.blur();
75
75
    return false;
188
188
        $(target.parentNode.parentNode).show();
189
189
    }
190
190
}
191
 
{/literal}
 
191