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

bug fixed: broken rate form on Luciano

File:
1 edited

Legend:

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

    r7948 r11049  
    6868        " title="{$mark}" />
    6969        {/foreach}
    70         <script type="text/javascript">
    71                         makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id},
    72                           ratingSummaryText: "{'Average rate'|@translate}: {'%.2f (rated %d times)'|@translate|@escape:'javascript'}",
    73           ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} );
    74                         </script>
     70
     71{combine_script id='rating' load='header' require='core.scripts' path='themes/default/js/rating.js'}
     72{footer_script}
     73makeNiceRatingForm({ldelim}
     74  rootUrl: '{$ROOT_URL|@escape:"javascript"}',
     75  image_id: {$current.id},
     76  ratingSummaryText: "{'Average rate'|@translate}: {'%.2f (rated %d times)'|@translate|@escape:'javascript'}",
     77  ratingSummaryElement: document.getElementById("ratingSummary")
     78{rdelim});
     79{/footer_script}
     80
    7581      </div>
    7682    </form>
Note: See TracChangeset for help on using the changeset viewer.