@@ -64,7 +64,7 @@ function marklist(id, name, state) {
6464
6565 jQuery ( '#' + id + ' input[type=checkbox][name]' ) . each ( function ( ) {
6666 var $this = jQuery ( this ) ;
67- if ( $this . attr ( 'name' ) . substr ( 0 , name . length ) === name ) {
67+ if ( $this . attr ( 'name' ) . substr ( 0 , name . length ) === name && ! $this . prop ( 'disabled' ) ) {
6868 $this . prop ( 'checked' , state ) ;
6969 }
7070 } ) ;
@@ -201,37 +201,6 @@ function selectCode(a) {
201201 }
202202}
203203
204- /**
205- * Play quicktime file by determining it's width/height
206- * from the displayed rectangle area
207- */
208- function play_qt_file ( obj ) {
209- 'use strict' ;
210-
211- var rectangle = obj . GetRectangle ( ) ;
212- var width , height ;
213-
214- if ( rectangle ) {
215- rectangle = rectangle . split ( ',' ) ;
216- var x1 = parseInt ( rectangle [ 0 ] , 10 ) ;
217- var x2 = parseInt ( rectangle [ 2 ] , 10 ) ;
218- var y1 = parseInt ( rectangle [ 1 ] , 10 ) ;
219- var y2 = parseInt ( rectangle [ 3 ] , 10 ) ;
220-
221- width = ( x1 < 0 ) ? ( x1 * - 1 ) + x2 : x2 - x1 ;
222- height = ( y1 < 0 ) ? ( y1 * - 1 ) + y2 : y2 - y1 ;
223- } else {
224- width = 200 ;
225- height = 0 ;
226- }
227-
228- obj . width = width ;
229- obj . height = height + 16 ;
230-
231- obj . SetControllerVisible ( true ) ;
232- obj . Play ( ) ;
233- }
234-
235204var inAutocomplete = false ;
236205var lastKeyEntered = '' ;
237206
@@ -309,15 +278,13 @@ function insertUser(formId, value) {
309278}
310279
311280function insert_marked_users ( formId , users ) {
312- 'use strict' ;
281+ 'use strict' ;
313282
314- for ( var i = 0 ; i < users . length ; i ++ ) {
315- if ( users [ i ] . checked ) {
316- insertUser ( formId , users [ i ] . value ) ;
317- }
318- }
283+ $ ( users ) . filter ( ':checked' ) . each ( function ( ) {
284+ insertUser ( formId , this . value ) ;
285+ } ) ;
319286
320- window . close ( ) ;
287+ window . close ( ) ;
321288}
322289
323290function insert_single_user ( formId , user ) {
@@ -668,13 +635,13 @@ function parseDocument($container) {
668635 /**
669636 * Adjust HTML code for IE8 and older versions
670637 */
671- if ( oldBrowser ) {
672- // Fix .linklist.bulletin lists
673- $container
674- . find ( 'ul.linklist.bulletin > li' )
675- . filter ( ':first-child, .rightside:last-child' )
676- . addClass ( 'no-bulletin' ) ;
677- }
638+ // if (oldBrowser) {
639+ // // Fix .linklist.bulletin lists
640+ // $container
641+ // .find('ul.linklist.bulletin > li')
642+ // .filter(':first-child, .rightside:last-child')
643+ // .addClass('no-bulletin');
644+ // }
678645
679646 /**
680647 * Resize navigation (breadcrumbs) block to keep all links on same line
@@ -831,7 +798,7 @@ function parseDocument($container) {
831798 $linksFirst = $linksNotSkip . not ( filterLast ) , // The items that will be hidden first
832799 $linksLast = $linksNotSkip . filter ( filterLast ) , // The items that will be hidden last
833800 persistent = $this . attr ( 'id' ) === 'nav-main' , // Does this list already have a menu (such as quick-links)?
834- html = '<li class="responsive-menu hidden"><a href="javascript:void(0);" class="responsive-menu-link"> </ a><div class="dropdown hidden "><div class="pointer"><div class="pointer-inner" /></div><ul class="dropdown-contents" /></div></li>' ,
801+ html = '<li class="responsive-menu hidden"><a href="javascript:void(0);" class="js- responsive-menu-link responsive-menu-link"><i class="icon fa-bars fa-fw" aria-hidden="true"></i></ a><div class="dropdown"><div class="pointer"><div class="pointer-inner" /></div><ul class="dropdown-contents" /></div></li>' ,
835802 slack = 3 ; // Vertical slack space (in pixels). Determines how sensitive the script is in determining whether a line-break has occured.
836803
837804 // Add a hidden drop-down menu to each links list (except those that already have one)
@@ -920,8 +887,10 @@ function parseDocument($container) {
920887 $menuContents . prepend ( $clones1 . addClass ( 'clone clone-first' ) . removeClass ( 'leftside rightside' ) ) ;
921888
922889 if ( $this . hasClass ( 'post-buttons' ) ) {
923- $ ( '.button' , $menuContents ) . removeClass ( 'button icon-button' ) ;
924- $ ( '.responsive-menu-link' , $menu ) . addClass ( 'button icon-button' ) . prepend ( '<span></span>' ) ;
890+ $ ( '.button' , $menuContents ) . removeClass ( 'button' ) ;
891+ $ ( '.sr-only' , $menuContents ) . removeClass ( 'sr-only' ) ;
892+ $ ( '.js-responsive-menu-link' ) . addClass ( 'button' ) . addClass ( 'button-icon-only' ) ;
893+ $ ( '.js-responsive-menu-link .icon' ) . removeClass ( 'fa-bars' ) . addClass ( 'fa-ellipsis-h' ) ;
925894 }
926895 copied1 = true ;
927896 }
@@ -975,12 +944,12 @@ function parseDocument($container) {
975944 }
976945
977946 if ( ! persistent ) {
978- phpbb . registerDropdown ( $menu . find ( 'a.responsive-menu-link' ) , $menu . find ( '.dropdown' ) , false ) ;
947+ phpbb . registerDropdown ( $menu . find ( 'a.js- responsive-menu-link' ) , $menu . find ( '.dropdown' ) , false ) ;
979948 }
980949
981950 // If there are any images in the links list, run the check again after they have loaded
982951 $linksAll . find ( 'img' ) . each ( function ( ) {
983- $ ( this ) . load ( function ( ) {
952+ $ ( this ) . on ( 'load' , function ( ) {
984953 check ( ) ;
985954 } ) ;
986955 } ) ;
0 commit comments