src/cm/media/js/site/f_text_view_frame.js
changeset 485 af74b898d551
parent 474 d3639d79979e
child 504 b2e0186daa5b
equal deleted inserted replaced
484:5a8e83132898 485:af74b898d551
   212       '<table style="margin-bottom:.3em;">' + 
   212       '<table style="margin-bottom:.3em;">' + 
   213       '<tbody>' + 
   213       '<tbody>' + 
   214       '<tr>' + 
   214       '<tr>' + 
   215       '<td>' +
   215       '<td>' +
   216         '<span id="c_filter_results" >' +
   216         '<span id="c_filter_results" >' +
       
   217           '<span id="c_browse_indx_scope">-</span>' +
       
   218           '<span id="c_browse_indx_modif_thread" style="display: none;">-</span>' +
       
   219           '/' +
   217         '<b>&nbsp;<span id="c_f_res_nb_dis"></span></b>&nbsp;<span id="c_f_res_nb_dis_txt"></span>' +
   220         '<b>&nbsp;<span id="c_f_res_nb_dis"></span></b>&nbsp;<span id="c_f_res_nb_dis_txt"></span>' +
   218         '<span id="c_f_res_details">&nbsp;(' + gettext('filter:') + '&nbsp;<span id="c_f_res_nb_com"></span>/<span id="c_f_res_nb_tot_com"></span>&nbsp;<span id="c_f_res_nb_com_txt"></span>&nbsp;<span id="c_f_res_nb_rep"></span>/<span id="c_f_res_nb_tot_rep"></span><span id="c_f_res_nb_rep_txt"></span>)</span>' +
   221         '<span id="c_f_res_details">&nbsp;(' + gettext('filter:') + '&nbsp;<span id="c_f_res_nb_com"></span>/<span id="c_f_res_nb_tot_com"></span>&nbsp;<span id="c_f_res_nb_com_txt"></span>&nbsp;<span id="c_f_res_nb_rep"></span>/<span id="c_f_res_nb_tot_rep"></span><span id="c_f_res_nb_rep_txt"></span>)</span>' +
   219         '</span>' +
   222         '</span>' +
   220       '</td>' +
   223       '</td>' +
   221       '<td>' +
   224       '<td>' +
   222       '<span id="browse_section">' +
   225       '<span id="browse_section">' +
   223       ', ' + gettext('browse by:') + ' ' + 
   226       ', ' + gettext('browse by:') + ' ' + 
   224         '<select id="browse_by">' + 
   227         '<select id="browse_by" style="margin-right: 7px;">' + 
   225         '<option value="scope">' + gettext('location') + '</option>' +
   228         '<option value="scope">' + gettext('location') + '</option>' +
   226         '<option value="modif_thread">' + gettext('modification') + '</option>' +
   229         '<option value="modif_thread">' + gettext('modification') + '</option>' +
   227         '</select>' + 
   230         '</select>' + 
   228       '</span>' +
   231       '</span>' +
   229       '</td>' + 
   232       '</td>' + 
   230       '<td width="40" align="right">' + 
   233       '<td style="width: 40px; text-align: right;">' + 
   231         '<a href="#" id="c_browse_first"><img title="'+ viewFirst +'" alt="'+ viewFirst +'" src="' + sv_media_url + '/img/control_fastbackward_blue.png"/></a>' +
   234         '<a href="#" id="c_browse_first"><img title="'+ viewFirst +'" alt="'+ viewFirst +'" src="' + sv_media_url + '/img/control_fastbackward_blue.png"/></a>' +
   232         '<a href="#" id="c_browse_prev"><img title="'+ viewPrev +'" alt="'+ viewPrev +'" src="' + sv_media_url + '/img/control_playback_blue.png"/></a>' +
   235         '<a href="#" id="c_browse_prev"><img title="'+ viewPrev +'" alt="'+ viewPrev +'" src="' + sv_media_url + '/img/control_playback_blue.png" style="margin-right: 3px;"/></a>' +
   233       '</td>' +
   236       '</td>' +
   234       '<td width="50" align="center">' +
   237       '<td style="width: 44px; text-align: left; border-right: 1px dotted #b1b1b1;">' +
   235           '<span id="c_browse_indx_scope">-</span>' +
       
   236           '<span id="c_browse_indx_modif_thread" style="display: none;">-</span>' +
       
   237           '/' +
       
   238           '<span id="c_browse_indx_total"></span>' + 
       
   239       '</td>' +
       
   240       '<td width="40" align="left">' +
       
   241         '<a href="#" id="c_browse_next"><img title="'+ viewNext +'" alt="'+ viewNext +'" src="' + sv_media_url + '/img/control_play_blue.png"/></a>' +
   238         '<a href="#" id="c_browse_next"><img title="'+ viewNext +'" alt="'+ viewNext +'" src="' + sv_media_url + '/img/control_play_blue.png"/></a>' +
   242         '<a href="#" id="c_browse_last"><img title="'+ viewLast +'" alt="'+ viewLast +'" src="' + sv_media_url + '/img/control_fastforward_blue.png"/></a>' +
   239         '<a href="#" id="c_browse_last"><img title="'+ viewLast +'" alt="'+ viewLast +'" src="' + sv_media_url + '/img/control_fastforward_blue.png"/></a>' +
   243       '</td>' +
   240       '</td>' +
   244       '<td width="20" align="left">' +
   241       '<td style="width: 20px; text-align: left;">' +
   245       '<a href="#" id="c_browse_all"><img title="'+ viewAll +'" alt="'+ viewAll +'" src="' + sv_media_url + '/img/view_all.png"/></a>' +
   242       '<a href="#" id="c_browse_all"><img title="'+ viewAll +'" alt="'+ viewAll +'" src="' + sv_media_url + '/img/view_all.png" style="margin-left: 11px; margin-right: 8px;" /></a>' +
   246       '</td>' +
   243       '</td>' +
   247       '<td width="20" align="left">' +
   244       '<td style="width: 20px; text-align: left;">' +
   248       '<a href="#" id="c_browse_scope_removed"><img title="'+ viewScopeRemoved +'" alt="'+ viewScopeRemoved +'" src="' + sv_media_url + '/img/view_scope_removed2.png"/></a>' +
   245       '<a href="#" id="c_browse_scope_removed"><img title="'+ viewScopeRemoved +'" alt="'+ viewScopeRemoved +'" src="' + sv_media_url + '/img/view_scope_removed2.png" style="margin-top: -8px; margin-right: 3px;" /></a>' +
   249       '</td>' +
   246       '</td>' +
   250       '<td width="20" align="left">' +
   247       '<td style="width: 20px; text-align: left;">' +
   251         '<a href="#" id="c_advanced_btn"><img title="'+ advancedInterface +'" alt="'+ advancedInterface +'" src="' + sv_media_url + '/img/application_split.png"/></a>' +
   248         '<a href="#" id="c_thread_unthread"><img id="c_thread_unthread_img" style="margin-right: 8px;"/></a>' +
   252       '</td>' +
   249       '</td>' +
   253       '<td width="20" align="left">' +
   250       '<td style="width: 20px; text-align: left;">' +
   254         '<a href="#" id="c_thread_unthread"><img id="c_thread_unthread_img"/></a>' +
       
   255       '</td>' +
       
   256       '<td width="20" align="left">' +
       
   257         '<a href="#" id="c_toc_btn"><img title="'+ toggleToc +'" alt="'+ toggleToc +'" src="' + sv_media_url + '/img/document_index.png"/></a>' +
   251         '<a href="#" id="c_toc_btn"><img title="'+ toggleToc +'" alt="'+ toggleToc +'" src="' + sv_media_url + '/img/document_index.png"/></a>' +
   258       '</td>' +
   252       '</td>' +
   259       '</tr>' +
   253       '</tr>' +
   260       '</tbody>' +
   254       '</tbody>' +
   261       '</table>' ;
   255       '</table>' ;
   601   $("#c_f_res_nb_tot_com").html(nbAllComments) ;
   595   $("#c_f_res_nb_tot_com").html(nbAllComments) ;
   602   $("#c_f_res_nb_com_txt").html(ngettext('comment', 'comments', nbComments)) ;
   596   $("#c_f_res_nb_com_txt").html(ngettext('comment', 'comments', nbComments)) ;
   603   $("#c_f_res_nb_rep").html(nbReplies) ; 
   597   $("#c_f_res_nb_rep").html(nbReplies) ; 
   604   $("#c_f_res_nb_tot_rep").html(nbAllReplies) ; 
   598   $("#c_f_res_nb_tot_rep").html(nbAllReplies) ; 
   605   $("#c_f_res_nb_rep_txt").html('&nbsp;' + ngettext('reply', 'replies', nbReplies)) ;
   599   $("#c_f_res_nb_rep_txt").html('&nbsp;' + ngettext('reply', 'replies', nbReplies)) ;
   606 
       
   607   // update browser infos
       
   608   $("#c_browse_indx_total").html(nbDiscussions) ; 
       
   609   
   600   
   610   //console.info('nbDiscussions + typeof nbDiscussions +nbComments + typeof nbComments) ;
   601   //console.info('nbDiscussions + typeof nbDiscussions +nbComments + typeof nbComments) ;
   611   $("#c_filter_results").show() ; 
   602   $("#c_filter_results").show() ; 
   612 } ;
   603 } ;
   613 
   604