@@ -38,32 +38,6 @@ function formatDuration(milliseconds, type) {
3838 return hours . toFixed ( 1 ) + " h" ;
3939}
4040
41- function makeIdNumeric ( id ) {
42- var strs = id . split ( "_" ) ;
43- if ( strs . length < 3 ) {
44- return id ;
45- }
46- var appSeqNum = strs [ 2 ] ;
47- var resl = strs [ 0 ] + "_" + strs [ 1 ] + "_" ;
48- var diff = 10 - appSeqNum . length ;
49- while ( diff > 0 ) {
50- resl += "0" ; // padding 0 before the app sequence number to make sure it has 10 characters
51- diff -- ;
52- }
53- resl += appSeqNum ;
54- return resl ;
55- }
56-
57- function formatDate ( date ) {
58- return date . split ( "." ) [ 0 ] . replace ( "T" , " " ) ;
59- }
60-
61- function getParameterByName ( name , searchString ) {
62- var regex = new RegExp ( "[\\?&]" + name + "=([^&#]*)" ) ,
63- results = regex . exec ( searchString ) ;
64- return results === null ? "" : decodeURIComponent ( results [ 1 ] . replace ( / \+ / g, " " ) ) ;
65- }
66-
6741function formatStatus ( status , type ) {
6842 if ( type !== 'display' ) return status ;
6943 if ( status ) {
@@ -99,21 +73,6 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, {
9973 }
10074} ) ;
10175
102- jQuery . extend ( jQuery . fn . dataTableExt . oSort , {
103- "appid-numeric-pre" : function ( a ) {
104- var x = a . match ( / t i t l e = " * ( - ? [ 0 - 9 a - z A - Z \- \_ ] + ) / ) [ 1 ] ;
105- return makeIdNumeric ( x ) ;
106- } ,
107-
108- "appid-numeric-asc" : function ( a , b ) {
109- return ( ( a < b ) ? - 1 : ( ( a > b ) ? 1 : 0 ) ) ;
110- } ,
111-
112- "appid-numeric-desc" : function ( a , b ) {
113- return ( ( a < b ) ? 1 : ( ( a > b ) ? - 1 : 0 ) ) ;
114- }
115- } ) ;
116-
11776$ ( document ) . ajaxStop ( $ . unblockUI ) ;
11877$ ( document ) . ajaxStart ( function ( ) {
11978 $ . blockUI ( { message : '<h3>Loading Executors Page...</h3>' } ) ;
@@ -224,8 +183,6 @@ $(document).ready(function() {
224183
225184 executorsSummary = $ ( "#active-executors" ) ;
226185 searchString = executorsSummary [ "context" ] [ "location" ] [ "search" ] ;
227- requestedIncomplete = getParameterByName ( "showIncomplete" , searchString ) ;
228- requestedIncomplete = ( requestedIncomplete == "true" ? true : false ) ;
229186
230187 var endPoint = createRESTEndPoint ( ) ;
231188
0 commit comments