You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

50 lines
1.6 KiB

  1. // FIXME figure out what this did and why
  2. // ( function( $, spc ) {
  3. //
  4. // var togglePageAnalysis = function(){
  5. // var $this = $('.page-attributes').find('.plugin__qc');
  6. // try{
  7. // var $link = $this.find('#plugin__qc__link'),
  8. // $container = $this.find('#plugin__qc__wrapper');
  9. //
  10. // if($container.length < 1){
  11. // $this.remove();
  12. // }else{
  13. // $container.attr('aria-hidden','true');
  14. // var $icon = $container.find('#plugin__qc__icon');
  15. // $container.find('#plugin__qc__out').removeAttr('style');
  16. // $link.on( 'click', function(e){
  17. // e.preventDefault();
  18. // $icon.trigger('click');
  19. // var oldState = ($link.attr('aria-expanded')=== "true" );
  20. // $container.attr('aria-hidden',oldState);
  21. // $(this).attr('aria-expanded',!oldState);
  22. //
  23. // });
  24. //
  25. // if($container.length > 0){
  26. // var num = $container.attr('data-errors');
  27. // if(num){
  28. // $link.find('.num').empty().append(num);
  29. // $link.closest('li').removeClass('do_none');
  30. // }
  31. // }
  32. //
  33. // }
  34. //
  35. // }catch(err){
  36. // $this.remove();
  37. // }
  38. // };
  39. //
  40. // $(function(){
  41. // togglePageAnalysis();
  42. // });
  43. //
  44. // } )( jQuery, spc );
  45. //
  46. //
  47. //
  48. //