@@ -279,11 +279,11 @@ function displayHeaderLabel(doc) {
279279 if ( user . menu . accountLink === "" ) {
280280 $ ( "#menuAccount" ) . attr ( "href" , user . menu . accountLink ) ;
281281 $ ( "#menuAccount" ) . attr ( "target" , "_blank" ) ;
282- $ ( "#menuAccount" ) . attr ( "style" , "display: none;" ) ;
282+ $ ( "#menuAccount" ) . attr ( "style" , "display: none;color: var(--crb-black-color) " ) ;
283283 } else {
284284 $ ( "#menuAccount" ) . attr ( "href" , user . menu . accountLink ) ;
285285 $ ( "#menuAccount" ) . attr ( "target" , "_blank" ) ;
286- $ ( "#menuAccount" ) . attr ( "style" , "display: block;" ) ;
286+ $ ( "#menuAccount" ) . attr ( "style" , "display: block;color: var(--crb-black-color) " ) ;
287287 }
288288
289289 if ( user . menu . logoutLink === "" ) {
@@ -305,7 +305,7 @@ function displayHeaderLabel(doc) {
305305 }
306306 aL = aL + "Logout.jsp" ;
307307 $ ( "#menuLogout" ) . attr ( "href" , user . menu . logoutLink . replace ( '%LOGOUTURL%' , encodeURIComponent ( aL ) ) ) ;
308- $ ( "#menuLogout" ) . attr ( "style" , "display: block;" ) ;
308+ $ ( "#menuLogout" ) . attr ( "style" , "display: block;color: var(--crb-black-color) " ) ;
309309 }
310310
311311 // Refresh History Menu
@@ -367,42 +367,43 @@ function loadUserSystemCombo() {
367367
368368function refreshHistoryMenu ( ) {
369369 $ ( ".histo" ) . remove ( ) ;
370+ $ ( ".menuSeparator" ) . remove ( ) ;
370371
371372 let entryList = localStorage . getItem ( "historyTestcases" ) ;
372373 entryList = JSON . parse ( entryList ) ;
373374 if ( entryList !== null && entryList . length > 0 ) {
374- $ ( "#userMenu" ) . append ( "<li class='menuSeparator histo '><span>Last Seen Testcases</span></li>" ) ;
375+ $ ( "#userMenu" ) . append ( "<li class='menuSeparator'><span>Last Seen Testcases</span></li>" ) ;
375376 for ( var item in entryList ) {
376377 let newitem = entryList . length - item - 1 ;
377378 let desc = "<div></div>" ;
378379 if ( ( entryList [ newitem ] . description !== undefined ) && ( entryList [ newitem ] . description !== "" ) ) {
379380 desc = "<div style='font-size: 10px;min-width: 350px'> " + entryList [ newitem ] . description + "</div>" ;
380381 }
381- $ ( "#userMenu" ) . append ( "<li class='histo'><a name='menuitem' href='TestCaseScript.jsp?test=" + encodeURIComponent ( entryList [ newitem ] . test ) + "&testcase=" + encodeURIComponent ( entryList [ newitem ] . testcase ) + "'><i class='fa fa-bars'></i>" +
382+ $ ( "#userMenu" ) . append ( "<li class='histo'><a style='color: var(--crb-black-color)' name='menuitem' href='TestCaseScript.jsp?test=" + encodeURIComponent ( entryList [ newitem ] . test ) + "&testcase=" + encodeURIComponent ( entryList [ newitem ] . testcase ) + "'><i class='fa fa-bars'></i>" +
382383 "<span> " + entryList [ newitem ] . test + " " + entryList [ newitem ] . testcase + "</span>" + desc + "</a></li>" ) ;
383384 }
384385 }
385386 entryList = localStorage . getItem ( "historyExecutions" ) ;
386387 entryList = JSON . parse ( entryList ) ;
387388 if ( entryList !== null && entryList . length > 0 ) {
388- $ ( "#userMenu" ) . append ( "<li class='menuSeparator histo '><span>Last Seen Executions</span></li>" ) ;
389+ $ ( "#userMenu" ) . append ( "<li class='menuSeparator'><span>Last Seen Executions</span></li>" ) ;
389390 for ( var item in entryList ) {
390391 let newitem = entryList . length - item - 1 ;
391392 let desc = "<div style='font-size: 10px;min-width: 350px'> " + entryList [ newitem ] . test + " " + entryList [ newitem ] . testcase + " | " + entryList [ newitem ] . country + " " + entryList [ newitem ] . environment + " " + entryList [ newitem ] . robot + "</div>" ;
392393 if ( ( entryList [ newitem ] . description !== undefined ) && ( entryList [ newitem ] . description !== "" ) ) {
393394 desc += "<div style='font-size: 10px;min-width: 350px'> " + entryList [ newitem ] . description + "</div>" ;
394395 }
395- $ ( "#userMenu" ) . append ( "<li class='histo'><a name='menuitem' href='TestCaseExecution.jsp?executionId=" + entryList [ newitem ] . id + "'><i class='fa fa-gear status" + entryList [ newitem ] . controlStatus + "'></i>" +
396+ $ ( "#userMenu" ) . append ( "<li class='histo'><a style='color: var(--crb-black-color)' name='menuitem' href='TestCaseExecution.jsp?executionId=" + entryList [ newitem ] . id + "'><i class='fa fa-gear status" + entryList [ newitem ] . controlStatus + "'></i>" +
396397 "<span class='status" + entryList [ newitem ] . controlStatus + "'> " + entryList [ newitem ] . id + "</span>" + desc + "</a></li>" ) ;
397398 }
398399 }
399400 entryList = localStorage . getItem ( "historyCampaigns" ) ;
400401 entryList = JSON . parse ( entryList ) ;
401402 if ( entryList !== null && entryList . length > 0 ) {
402- $ ( "#userMenu" ) . append ( "<li class='menuSeparator histo '><span>Last Seen Campaigns</span></li>" ) ;
403+ $ ( "#userMenu" ) . append ( "<li class='menuSeparator'><span>Last Seen Campaigns</span></li>" ) ;
403404 for ( var item in entryList ) {
404405 let newitem = entryList . length - item - 1 ;
405- $ ( "#userMenu" ) . append ( "<li class='histo'><a name='menuitem' href='ReportingExecutionByTag.jsp?Tag=" + encodeURIComponent ( entryList [ newitem ] . tag ) + "'><i class='fa fa-gears'></i><span> " + entryList [ newitem ] . tag + "</span></a></li>" ) ;
406+ $ ( "#userMenu" ) . append ( "<li class='histo'><a style='color: var(--crb-black-color)' name='menuitem' href='ReportingExecutionByTag.jsp?Tag=" + encodeURIComponent ( entryList [ newitem ] . tag ) + "'><i class='fa fa-gears'></i><span> " + entryList [ newitem ] . tag + "</span></a></li>" ) ;
406407 }
407408 }
408409}
@@ -415,6 +416,10 @@ function multiSelectConfSystem(name) {
415416 this . enableCaseInsensitiveFiltering = true ;
416417 this . includeSelectAllOption = true ;
417418 this . includeSelectAllIfMoreThan = 2 ;
419+ // this.optionClass = "btn-default";
420+ // this.inheritClass = "btn-default";
421+ // this.buttonClass = "btn-default";
422+ this . selectedClass = "btn-default" ;
418423}
419424
420425function ChangeLanguage ( ) {
0 commit comments