Ignore:
Timestamp:
Jul 27, 2012, 4:47:29 PM (12 years ago)
Author:
mistic100
Message:

rewrite all urls to be compatible with "question_mark_in_urls"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/template/thumbnails_css_js.tpl

    r16698 r17178  
    1313  jQuery.ajax({ldelim}
    1414    type: "POST",
    15     url: "{$USER_COLLEC_PATH}toggle_image.php",
     15    url: "{$ROOT_URL}{$USER_COLLEC_PATH}toggle_image.php",
    1616    data: {ldelim} {if $COL_ID}"col_id": "{$COL_ID}", {/if}"toggle_id": toggle_id }
    1717  }).done(function(msg) {ldelim}
    1818    if (msg == "true") {ldelim}
    19       $trigger.html('{'Remove from collection'|@translate}&nbsp;<img src="{$USER_COLLEC_PATH}template/image_delete.png" title="{'Remove from collection'|@translate}">');
     19      $trigger.html('{'Remove from collection'|@translate}&nbsp;<img src="{$ROOT_URL}{$USER_COLLEC_PATH}template/image_delete.png" title="{'Remove from collection'|@translate}">');
    2020      jQuery(".nbImagesCollec").html(parseInt(jQuery(".nbImagesCollec").html()) +1);
    2121    } else if (msg == "false") {ldelim}
     
    2424      if (typeof batchdown_count != 'undefined') batchdown_count-=1;
    2525    {else}
    26       $trigger.html('{'Add to collection'|@translate}&nbsp;<img src="{$USER_COLLEC_PATH}template/image_add.png" title="{'Add to collection'|@translate}">');
     26      $trigger.html('{'Add to collection'|@translate}&nbsp;<img src="{$ROOT_URL}{$USER_COLLEC_PATH}template/image_add.png" title="{'Add to collection'|@translate}">');
    2727    {/if}
    2828      jQuery(".nbImagesCollec").html(parseInt(jQuery(".nbImagesCollec").html()) -1);
Note: See TracChangeset for help on using the changeset viewer.