From: Derk-Jan Hartman Date: Sun, 28 Jul 2013 13:53:40 +0000 (+0200) Subject: Use one call to .attr instead of two and linebreak consistency X-Git-Tag: 1.31.0-rc.0~19091^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=3e3947718961fe328cedaca73ae1fbd7fbe96e2d;p=lhc%2Fweb%2Fwiklou.git Use one call to .attr instead of two and linebreak consistency Follow-up to: I2b937eba605b7e6a98612a02c75eb9e7f347752 Change-Id: I45254ad2fee63918763cc7662523b80c26418177 --- diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index 863d8ec72e..190ad1a583 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -345,8 +345,11 @@ if ( !this.sortDisabled ) { $( this ) .addClass( table.config.cssHeader ) - .attr( 'title', msg[1] ) - .prop( 'tabIndex', 0 ).attr( 'role', 'button' ); + .prop( 'tabIndex', 0 ) + .attr( { + role: 'button', + title: msg[1] + } ); } // add cell to headerList