{* $Id$ *}
{ticket}
{include file='admin/include_apply_top.tpl'}
{tr}Global configuration{/tr} {preference name=rating_recalculation}
{preference name=rating_recalculation_odd} {preference name=rating_recalculation_count}
{preference name=ip_can_be_checked} {preference name=rating_allow_multi_votes}
{tr}Wiki{/tr} {preference name=feature_wiki_ratings} {preference name=wiki_simple_ratings}
{preference name=wiki_simple_ratings_options}
{tr}Articles{/tr} {preference name=article_user_rating}
{preference name=article_user_rating_options}
{tr}Comments{/tr} {preference name=comments_vote} {preference name=wiki_comments_simple_ratings}
{preference name=wiki_comments_simple_ratings_options} {tr}This preference needs to be disabled:{/tr}{preference name=wiki_comments_form_displayed_default}
{tr}Forums{/tr} {remarksbox title="{tr}Enabling ratings for forums{/tr}"} {tr}You need to:{/tr} {tr}Permissions involved:{/tr} forum_vote ({tr}forums{/tr}), ratings_view_results ({tr}tiki{/tr}) {/remarksbox}
{tr}Trackers{/tr} {preference name=trackerfield_rating}
{tr}Default Options{/tr} {preference name=rating_default_options}
{tr}User Interface{/tr} {preference name=rating_results_detailed}
{preference name=rating_results_detailed_percent}
{preference name=rating_smileys} {*{preference name=rating_options_reversed}*}
{tr}Advanced{/tr} {preference name=rating_advanced}
{include file='admin/include_apply_bottom.tpl'}
{foreach from=$configurations item=config}
{ticket}
{$config.name|escape} (ID: {$config.ratingConfigId|escape}, {tr}Search Field:{/tr} adv_rating_{$config.ratingConfigId|escape})
{tr}seconds{/tr}


{/foreach}
{ticket}
{tr}Create new{/tr}
{jq} $('form.config').submit( function( e ) { return ! $(this).find('input[type=submit]').attr('disabled'); } ); $('form.config .error').hide(); $('form.config textarea').change( function( e ) { var text = this; e.preventDefault(); var submit = $(this).closest('form').find('input[type=submit]').attr('disabled', true); $.getJSON( window.location.href, { test: $(this).val() }, function( data ) { submit.attr( 'disabled', ! data.valid ); if( data.valid ) { $(text).closest('form').find('.error').hide(); } else { $(text).closest('form').find('.error').show().text( data.message ); } } ); } ); {/jq}