Ignore:
Timestamp:
May 25, 2011, 1:26:14 PM (13 years ago)
Author:
plg
Message:

bug fixed: just like with theme Luciano, rate form was broken on theme Stripped

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/template/picture.tpl

    r10930 r11051  
    291291                                                                                        {/if}
    292292                                                                                {/foreach}
    293                                                                                 <script type="text/javascript" src="{$ROOT_URL}themes/default/js/rating.js"></script>
    294                                                                                 <script type="text/javascript">
    295                                                                                         makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id},
    296                                                                                         updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"),
    297                                                                                         ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} );
    298                                                                                 </script>
     293{combine_script id='rating' load='header' require='core.scripts' path='themes/default/js/rating.js'}
     294{footer_script}
     295makeNiceRatingForm({ldelim}
     296  rootUrl: '{$ROOT_URL|@escape:"javascript"}',
     297  image_id: {$current.id},
     298  ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}",
     299  ratingSummaryElement: document.getElementById("ratingSummary")
     300{rdelim});
     301{/footer_script}
    299302                                                                        </div>
    300303                                                                        </form>
Note: See TracChangeset for help on using the changeset viewer.