From 3e3947718961fe328cedaca73ae1fbd7fbe96e2d Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sun, 28 Jul 2013 15:53:40 +0200 Subject: [PATCH] Use one call to .attr instead of two and linebreak consistency Follow-up to: I2b937eba605b7e6a98612a02c75eb9e7f347752 Change-Id: I45254ad2fee63918763cc7662523b80c26418177 --- resources/jquery/jquery.tablesorter.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.20.1