Ignore:
Timestamp:
Apr 21, 2014, 6:09:17 PM (11 years ago)
Author:
flop25
Message:

escape language value for js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/TakeATour/tours/first_contact/tour.tpl

    r28169 r28243  
    1111  {
    1212    path: "{/literal}{$TAT_path}{literal}admin.php",
    13     title: "{/literal}{'first_contact_title1'|@translate}{literal}",
    14     content: "{/literal}{'first_contact_stp1'|@translate}{literal}"
     13    title: "{/literal}{'first_contact_title1'|@translate|@escape:'javascript'}{literal}",
     14    content: "{/literal}{'first_contact_stp1'|@translate|@escape:'javascript'}{literal}"
    1515  },
    1616  {
     
    1919    element: ".icon-plus-circled",
    2020    reflex:true,
    21     title: "{/literal}{'first_contact_title2'|@translate}{literal}",
    22     content: "{/literal}{'first_contact_stp2'|@translate}{literal}",
     21    title: "{/literal}{'first_contact_title2'|@translate|@escape:'javascript'}{literal}",
     22    content: "{/literal}{'first_contact_stp2'|@translate|@escape:'javascript'}{literal}",
    2323  },
    2424  {
     
    2626    placement: "bottom",
    2727    element: ".selected_tab",
    28     title: "{/literal}{'first_contact_title3'|@translate}{literal}",
    29     content: "{/literal}{'first_contact_stp3'|@translate}{literal}",
     28    title: "{/literal}{'first_contact_title3'|@translate|@escape:'javascript'}{literal}",
     29    content: "{/literal}{'first_contact_stp3'|@translate|@escape:'javascript'}{literal}",
    3030  },
    3131  {
     
    3333    placement: "left",
    3434    element: "#albumSelection",
    35     title: "{/literal}{'first_contact_title4'|@translate}{literal}",
    36     content: "{/literal}{'first_contact_stp4'|@translate}{literal}"
     35    title: "{/literal}{'first_contact_title4'|@translate|@escape:'javascript'}{literal}",
     36    content: "{/literal}{'first_contact_stp4'|@translate|@escape:'javascript'}{literal}"
    3737  },
    3838  {//5
     
    4040    placement: "top",
    4141    element: "#uploadify",
    42     title: "{/literal}{'first_contact_title5'|@translate}{literal}",
    43     content: "{/literal}{'first_contact_stp5'|@translate}{literal}"
     42    title: "{/literal}{'first_contact_title5'|@translate|@escape:'javascript'}{literal}",
     43    content: "{/literal}{'first_contact_stp5'|@translate|@escape:'javascript'}{literal}"
    4444  },
    4545  {
     
    4848    placement: "left",
    4949    element: "#fileQueue",
    50     title: "{/literal}{'first_contact_title6'|@translate}{literal}",
    51     content: "{/literal}{'first_contact_stp6'|@translate}{literal}"
     50    title: "{/literal}{'first_contact_title6'|@translate|@escape:'javascript'}{literal}",
     51    content: "{/literal}{'first_contact_stp6'|@translate|@escape:'javascript'}{literal}"
    5252  },
    5353  {
     
    5656    placement: "top",
    5757    element: "#photosAddContent legend",
    58     title: "{/literal}{'first_contact_title7'|@translate}{literal}",
    59     content: "{/literal}{'first_contact_stp7'|@translate}{literal}",
     58    title: "{/literal}{'first_contact_title7'|@translate|@escape:'javascript'}{literal}",
     59    content: "{/literal}{'first_contact_stp7'|@translate|@escape:'javascript'}{literal}",
    6060    prev:4
    6161  },
     
    6666    element: "#batchLink",
    6767    reflex:true,
    68     title: "{/literal}{'first_contact_title8'|@translate}{literal}",
    69     content: "{/literal}{'first_contact_stp8'|@translate}{literal}",
     68    title: "{/literal}{'first_contact_title8'|@translate|@escape:'javascript'}{literal}",
     69    content: "{/literal}{'first_contact_stp8'|@translate|@escape:'javascript'}{literal}",
    7070    prev:4
    7171  },
     
    7575    placement: "top",
    7676    element: "",
    77     title: "{/literal}{'first_contact_title9'|@translate}{literal}",
    78     content: "{/literal}{'first_contact_stp9'|@translate}{literal}"
     77    title: "{/literal}{'first_contact_title9'|@translate|@escape:'javascript'}{literal}",
     78    content: "{/literal}{'first_contact_stp9'|@translate|@escape:'javascript'}{literal}"
    7979  },
    8080  {//10
     
    8383    placement: "right",
    8484    element: ".icon-flag",
    85     title: "{/literal}{'first_contact_title10'|@translate}{literal}",
    86     content: "{/literal}{'first_contact_stp10'|@translate}{literal}"
     85    title: "{/literal}{'first_contact_title10'|@translate|@escape:'javascript'}{literal}",
     86    content: "{/literal}{'first_contact_stp10'|@translate|@escape:'javascript'}{literal}"
    8787  },
    8888  {
     
    9191    placement: "left",
    9292    element: "#checkActions",
    93     title: "{/literal}{'first_contact_title11'|@translate}{literal}",
    94     content: "{/literal}{'first_contact_stp11'|@translate}{literal}"
     93    title: "{/literal}{'first_contact_title11'|@translate|@escape:'javascript'}{literal}",
     94    content: "{/literal}{'first_contact_stp11'|@translate|@escape:'javascript'}{literal}"
    9595  },
    9696  {
     
    9999    placement: "top",
    100100    element: "#action",
    101     title: "{/literal}{'first_contact_title12'|@translate}{literal}",
    102     content: "{/literal}{'first_contact_stp12'|@translate}{literal}"
     101    title: "{/literal}{'first_contact_title12'|@translate|@escape:'javascript'}{literal}",
     102    content: "{/literal}{'first_contact_stp12'|@translate|@escape:'javascript'}{literal}"
    103103  },
    104104  {
     
    107107    placement: "bottom",
    108108    element: "#tabsheet .normal_tab",
    109     title: "{/literal}{'first_contact_title13'|@translate}{literal}",
    110     content: "{/literal}{'first_contact_stp13'|@translate}{literal}"
     109    title: "{/literal}{'first_contact_title13'|@translate|@escape:'javascript'}{literal}",
     110    content: "{/literal}{'first_contact_stp13'|@translate|@escape:'javascript'}{literal}"
    111111  },
    112112  {
     
    116116    element: "#TAT_FC_14",
    117117    reflex:true,
    118     title: "{/literal}{'first_contact_title14'|@translate}{literal}",
    119     content: "{/literal}{'first_contact_stp14'|@translate}{literal}",
     118    title: "{/literal}{'first_contact_title14'|@translate|@escape:'javascript'}{literal}",
     119    content: "{/literal}{'first_contact_stp14'|@translate|@escape:'javascript'}{literal}",
    120120    onNext:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";}
    121121  },
     
    125125    placement: "bottom",
    126126    element: ".selected_tab",
    127     title: "{/literal}{'first_contact_title15'|@translate}{literal}",
    128     content: "{/literal}{'first_contact_stp15'|@translate}{literal}"
     127    title: "{/literal}{'first_contact_title15'|@translate|@escape:'javascript'}{literal}",
     128    content: "{/literal}{'first_contact_stp15'|@translate|@escape:'javascript'}{literal}"
    129129  },
    130130  {
     
    133133    placement: "top",
    134134    element: "#TAT_FC_16",
    135     title: "{/literal}{'first_contact_title16'|@translate}{literal}",
    136     content: "{/literal}{'first_contact_stp16'|@translate}{literal}"
     135    title: "{/literal}{'first_contact_title16'|@translate|@escape:'javascript'}{literal}",
     136    content: "{/literal}{'first_contact_stp16'|@translate|@escape:'javascript'}{literal}"
    137137  },
    138138  {
     
    141141    placement: "top",
    142142    element: "#TAT_FC_17",
    143     title: "{/literal}{'first_contact_title17'|@translate}{literal}",
    144     content: "{/literal}{'first_contact_stp17'|@translate}{literal}"
     143    title: "{/literal}{'first_contact_title17'|@translate|@escape:'javascript'}{literal}",
     144    content: "{/literal}{'first_contact_stp17'|@translate|@escape:'javascript'}{literal}"
    145145  },
    146146  {
     
    148148    redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
    149149    placement: "top",
    150     title: "{/literal}{'first_contact_title18'|@translate}{literal}",
    151     content: "{/literal}{'first_contact_stp18'|@translate}{literal}"
     150    title: "{/literal}{'first_contact_title18'|@translate|@escape:'javascript'}{literal}",
     151    content: "{/literal}{'first_contact_stp18'|@translate|@escape:'javascript'}{literal}"
    152152  },
    153153  {
     
    155155    placement: "left",
    156156    element: "#content",
    157     title: "{/literal}{'first_contact_title19'|@translate}{literal}",
    158     content: "{/literal}{if $TAT_FTP}{'first_contact_stp19'|@translate}{else}{'first_contact_stp19_b'|@translate}{/if}{literal}",
     157    title: "{/literal}{'first_contact_title19'|@translate|@escape:'javascript'}{literal}",
     158    content: "{/literal}{if $TAT_FTP}{'first_contact_stp19'|@translate|@escape:'javascript'}{else}{'first_contact_stp19_b'|@translate|@escape:'javascript'}{/if}{literal}",
    159159    onPrev: function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
    160160
     
    164164    placement: "top",
    165165    element: "#categoryOrdering",
    166     title: "{/literal}{'first_contact_title20'|@translate}{literal}",
    167     content: "{/literal}{'first_contact_stp20'|@translate}{literal}"
     166    title: "{/literal}{'first_contact_title20'|@translate|@escape:'javascript'}{literal}",
     167    content: "{/literal}{'first_contact_stp20'|@translate|@escape:'javascript'}{literal}"
    168168  },
    169169  {
     
    171171    placement: "left",
    172172    element: "#tabsheet:first-child",
    173     title: "{/literal}{'first_contact_title21'|@translate}{literal}",
    174     content: "{/literal}{'first_contact_stp21'|@translate}{literal}"
     173    title: "{/literal}{'first_contact_title21'|@translate|@escape:'javascript'}{literal}",
     174    content: "{/literal}{'first_contact_stp21'|@translate|@escape:'javascript'}{literal}"
    175175  },
    176176  {
     
    179179    placement: "top",
    180180    element: ".selected_tab",
    181     title: "{/literal}{'first_contact_title22'|@translate}{literal}",
    182     content: "{/literal}{'first_contact_stp22'|@translate}{literal}"
     181    title: "{/literal}{'first_contact_title22'|@translate|@escape:'javascript'}{literal}",
     182    content: "{/literal}{'first_contact_stp22'|@translate|@escape:'javascript'}{literal}"
    183183  },
    184184  {
     
    187187    placement: "top",
    188188    element: "#TAT_FC_23",
    189     title: "{/literal}{'first_contact_title23'|@translate}{literal}",
    190     content: "{/literal}{'first_contact_stp23'|@translate}{literal}"
     189    title: "{/literal}{'first_contact_title23'|@translate|@escape:'javascript'}{literal}",
     190    content: "{/literal}{'first_contact_stp23'|@translate|@escape:'javascript'}{literal}"
    191191  },
    192192  {
     
    195195    placement: "bottom",
    196196    element: ".tabsheet",
    197     title: "{/literal}{'first_contact_title24'|@translate}{literal}",
    198     content: "{/literal}{'first_contact_stp24'|@translate}{literal}"
     197    title: "{/literal}{'first_contact_title24'|@translate|@escape:'javascript'}{literal}",
     198    content: "{/literal}{'first_contact_stp24'|@translate|@escape:'javascript'}{literal}"
    199199  },
    200200  {//25
     
    203203    placement: "left",
    204204    element: "#content",
    205     title: "{/literal}{'first_contact_title25'|@translate}{literal}",
    206     content: "{/literal}{'first_contact_stp25'|@translate}{literal}"
     205    title: "{/literal}{'first_contact_title25'|@translate|@escape:'javascript'}{literal}",
     206    content: "{/literal}{'first_contact_stp25'|@translate|@escape:'javascript'}{literal}"
    207207  },
    208208  {
     
    211211    placement: "top",
    212212    element: "#selectStatus",
    213     title: "{/literal}{'first_contact_title26'|@translate}{literal}",
    214     content: "{/literal}{'first_contact_stp26'|@translate}{literal}"
     213    title: "{/literal}{'first_contact_title26'|@translate|@escape:'javascript'}{literal}",
     214    content: "{/literal}{'first_contact_stp26'|@translate|@escape:'javascript'}{literal}"
    215215  },
    216216  {
     
    219219    placement: "top",
    220220    element: "#selectStatus",
    221     title: "{/literal}{'first_contact_title27'|@translate}{literal}",
    222     content: "{/literal}{'first_contact_stp27'|@translate}{literal}"
     221    title: "{/literal}{'first_contact_title27'|@translate|@escape:'javascript'}{literal}",
     222    content: "{/literal}{'first_contact_stp27'|@translate|@escape:'javascript'}{literal}"
    223223  },
    224224  {
     
    226226    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
    227227    placement: "top",
    228     title: "{/literal}{'first_contact_title28'|@translate}{literal}",
    229     content: "{/literal}{'first_contact_stp28'|@translate}{literal}"
    230   },
    231   {
    232     path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
    233     placement: "top",
    234     element: "",
    235     title: "{/literal}{'first_contact_title29'|@translate}{literal}",
    236     content: "{/literal}{'first_contact_stp29'|@translate}{literal}"
     228    title: "{/literal}{'first_contact_title28'|@translate|@escape:'javascript'}{literal}",
     229    content: "{/literal}{'first_contact_stp28'|@translate|@escape:'javascript'}{literal}"
     230  },
     231  {
     232    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
     233    placement: "top",
     234    element: "",
     235    title: "{/literal}{'first_contact_title29'|@translate|@escape:'javascript'}{literal}",
     236    content: "{/literal}{'first_contact_stp29'|@translate|@escape:'javascript'}{literal}"
    237237  },
    238238  {//30
     
    240240    placement: "right",
    241241    element: "#gallery_title",
    242     title: "{/literal}{'first_contact_title30'|@translate}{literal}",
    243     content: "{/literal}{'first_contact_stp30'|@translate}{literal}"
     242    title: "{/literal}{'first_contact_title30'|@translate|@escape:'javascript'}{literal}",
     243    content: "{/literal}{'first_contact_stp30'|@translate|@escape:'javascript'}{literal}"
    244244  },
    245245  {
     
    247247    placement: "right",
    248248    element: "#page_banner",
    249     title: "{/literal}{'first_contact_title31'|@translate}{literal}",
    250     content: "{/literal}{'first_contact_stp31'|@translate}{literal}"
     249    title: "{/literal}{'first_contact_title31'|@translate|@escape:'javascript'}{literal}",
     250    content: "{/literal}{'first_contact_stp31'|@translate|@escape:'javascript'}{literal}"
    251251  },
    252252  {
     
    255255    placement: "top",
    256256    element: ".formButtons input",
    257     title: "{/literal}{'first_contact_title32'|@translate}{literal}",
    258     content: "{/literal}{'first_contact_stp32'|@translate}{literal}"
    259   },
    260   {
    261     path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
    262     placement: "top",
    263     title: "{/literal}{'first_contact_stp33'|@translate}{literal}",
    264     content: "{/literal}{'first_contact_stp33'|@translate}{literal}",
     257    title: "{/literal}{'first_contact_title32'|@translate|@escape:'javascript'}{literal}",
     258    content: "{/literal}{'first_contact_stp32'|@translate|@escape:'javascript'}{literal}"
     259  },
     260  {
     261    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
     262    placement: "top",
     263    title: "{/literal}{'first_contact_stp33'|@translate|@escape:'javascript'}{literal}",
     264    content: "{/literal}{'first_contact_stp33'|@translate|@escape:'javascript'}{literal}",
    265265    prev:30
    266266  },
     
    269269    placement: "top",
    270270    element: "",
    271     title: "{/literal}{'first_contact_title34'|@translate}{literal}",
    272     content: "{/literal}{'first_contact_stp34'|@translate}{literal}"
     271    title: "{/literal}{'first_contact_title34'|@translate|@escape:'javascript'}{literal}",
     272    content: "{/literal}{'first_contact_stp34'|@translate|@escape:'javascript'}{literal}"
    273273  },
    274274  {//35
     
    276276    placement: "top",
    277277    element: "#TAT_FC_35",
    278     title: "{/literal}{'first_contact_title35'|@translate}{literal}",
    279     content: "{/literal}{'first_contact_stp35'|@translate}{literal}"
     278    title: "{/literal}{'first_contact_title35'|@translate|@escape:'javascript'}{literal}",
     279    content: "{/literal}{'first_contact_stp35'|@translate|@escape:'javascript'}{literal}"
    280280  },
    281281  {
     
    283283    placement: "top",
    284284    element: "",
    285     title: "{/literal}{'first_contact_title36'|@translate}{literal}",
    286     content: "{/literal}{'first_contact_stp36'|@translate}{literal}"
     285    title: "{/literal}{'first_contact_title36'|@translate|@escape:'javascript'}{literal}",
     286    content: "{/literal}{'first_contact_stp36'|@translate|@escape:'javascript'}{literal}"
    287287  },
    288288  {
     
    290290    placement: "right",
    291291    element: ".tabsheet",
    292     title: "{/literal}{'first_contact_title37'|@translate}{literal}",
    293     content: "{/literal}{'first_contact_stp37'|@translate}{literal}"
     292    title: "{/literal}{'first_contact_title37'|@translate|@escape:'javascript'}{literal}",
     293    content: "{/literal}{'first_contact_stp37'|@translate|@escape:'javascript'}{literal}"
    294294  },
    295295  {
     
    297297    placement: "left",
    298298    element: "",
    299     title: "{/literal}{'first_contact_title38'|@translate}{literal}",
    300     content: "{/literal}{'first_contact_stp38'|@translate}{literal}"
     299    title: "{/literal}{'first_contact_title38'|@translate|@escape:'javascript'}{literal}",
     300    content: "{/literal}{'first_contact_stp38'|@translate|@escape:'javascript'}{literal}"
    301301  },
    302302  {
     
    304304    placement: "left",
    305305    element: "#content",
    306     title: "{/literal}{'first_contact_title39'|@translate}{literal}",
    307     content: "{/literal}{'first_contact_stp39'|@translate}{literal}"
     306    title: "{/literal}{'first_contact_title39'|@translate|@escape:'javascript'}{literal}",
     307    content: "{/literal}{'first_contact_stp39'|@translate|@escape:'javascript'}{literal}"
    308308  },
    309309  {//40
     
    311311    placement: "bottom",
    312312    element: "#TakeATour",
    313     title: "{/literal}{'first_contact_title40'|@translate}{literal}",
    314     content: "{/literal}{'first_contact_stp40'|@translate}{literal}"
     313    title: "{/literal}{'first_contact_title40'|@translate|@escape:'javascript'}{literal}",
     314    content: "{/literal}{'first_contact_stp40'|@translate|@escape:'javascript'}{literal}"
    315315  },
    316316  {
     
    318318    placement: "right",
    319319    element: ".tabsheet",
    320     title: "{/literal}{'first_contact_title41'|@translate}{literal}",
    321     content: "{/literal}{'first_contact_stp41'|@translate}{literal}"
     320    title: "{/literal}{'first_contact_title41'|@translate|@escape:'javascript'}{literal}",
     321    content: "{/literal}{'first_contact_stp41'|@translate|@escape:'javascript'}{literal}"
    322322  },
    323323  {
    324324    path: "{/literal}{$TAT_path}{literal}admin.php?page=languages",
    325     title: "{/literal}{'first_contact_title42'|@translate}{literal}",
    326     content: "{/literal}{'first_contact_stp42'|@translate}{literal}"
     325    title: "{/literal}{'first_contact_title42'|@translate|@escape:'javascript'}{literal}",
     326    content: "{/literal}{'first_contact_stp42'|@translate|@escape:'javascript'}{literal}"
    327327  },
    328328  {
     
    330330    placement: "top",
    331331    element: "",
    332     title: "{/literal}{'first_contact_title43'|@translate}{literal}",
    333     content: "{/literal}{'first_contact_stp43'|@translate}{literal}"
     332    title: "{/literal}{'first_contact_title43'|@translate|@escape:'javascript'}{literal}",
     333    content: "{/literal}{'first_contact_stp43'|@translate|@escape:'javascript'}{literal}"
    334334  }
    335335]);
Note: See TracChangeset for help on using the changeset viewer.