|
|
Linha 1: |
Linha 1: |
| if($('meta[name="wiki_dev__login"]')[0].content === 'false'){ | | if($('meta[name="wiki_dev__login"]')[0].content === 'false'){ |
| $('.skin-citizen-light .ns-subject #mw-drawer-button-icon, .skin-citizen-light .mw-special-Badtitle #mw-drawer-button-icon, .skin-citizen-light .mw-special-Userlogin #mw-drawer-button-icon, .skin-citizen-light .mw-special-Userlogout #mw-drawer-button-icon').css('display', 'none'); | | $('#mw-drawer-button-icon').css('display', 'none'); |
| $('.skin-citizen-light .ns-subject #mw-drawer-button, .skin-citizen-light .mw-special-Badtitle #mw-drawer-button, .skin-citizen-light .mw-special-Userlogin #mw-drawer-button, .skin-citizen-light .mw-special-Userlogout #mw-drawer-button').css('display', 'none'); | | $('#mw-drawer-button').css('display', 'none'); |
| $('#header-pagetitle').css('margin', '20px') | | $('#header-pagetitle').css('margin', '20px') |
| $('#header-sitetitle').css('margin', '20px') | | $('#header-sitetitle').css('margin', '20px') |
| } | | } |
|
| |
|
| /*controla a visualização da seção de revisão*/
| | //teste e correção de tema |
| //if($('.fr-diff-ratings').length <= 0){
| |
| // if($('#mw-fr-revisiontag').length >= 1){
| |
| // $('#mw-fr-submit-accept').css('display','inline-block');
| |
| // if($('mw-fr-submit-unaccept').length >= 1){
| |
| // $('mw-fr-submit-unaccept').css('display','none');
| |
| // }
| |
| // }else{
| |
| // $('#mw-fr-submit-unaccept').css('display','inline-block');
| |
| // if($('#mw-fr-submit-accept').length >= 1){
| |
| // $('#mw-fr-submit-accept').css('display','none');
| |
| // }
| |
| // }
| |
| //}else{
| |
| // if($('.flaggedrevs-color-0').length >= 1){
| |
| // $('#mw-fr-submit-accept').css('display','inline-block');
| |
| // if($('mw-fr-submit-unaccept').length >= 1){
| |
| // $('mw-fr-submit-unaccept').css('display','none');
| |
| // }
| |
| // }else{
| |
| // $('#mw-fr-submit-unaccept').css('display','inline-block');
| |
| // if($('#mw-fr-submit-accept').length >= 1){
| |
| // $('#mw-fr-submit-accept').css('display','none');
| |
| // }
| |
| // }
| |
| //}
| |
| | |
| if($('#ca-ve-edit').length <= 0 && $('#ca-edit').length <= 0){
| |
| $('#mw-fr-reviewform').css('display','none');
| |
| }
| |
| | |
| //$('#mw-fr-submit-accept').on('click', function(){
| |
| // limpar_comentario_revisao();
| |
| // $('#mw-fr-submit-unaccept').css('display','inline-block');
| |
| // $('#mw-fr-submit-accept').css('display','none');
| |
| //});
| |
| //$('#mw-fr-submit-unaccept').on('click', function(){
| |
| // limpar_comentario_revisao();
| |
| // $('#mw-fr-submit-accept').css('display','inline-block');
| |
| // $('#mw-fr-submit-unaccept').css('display','none');
| |
| //});
| |
| | |
| //function limpar_comentario_revisao(){
| |
| // $('#mw-fr-commentbox').val('');
| |
| //}
| |
| | |
| //teste de correção de tema | |
| if(localStorage.getItem('skin-citizen-theme') != 'light'){ | | if(localStorage.getItem('skin-citizen-theme') != 'light'){ |
| localStorage.setItem('skin-citizen-theme', 'light'); | | localStorage.setItem('skin-citizen-theme', 'light'); |
| window.location.reload(); | | window.location.reload(); |
| } | | } |