File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7988,6 +7988,31 @@ div.panel.ui-dialog div.list-view div.fixed-header {
79887988 left : 0 ;
79897989}
79907990
7991+ . project-selector . button . cancel {
7992+ color : # 808080;
7993+ background : url ( "../images/gradients.png" ) repeat scroll 0 -480px # B6B6B6;
7994+ border : 1px solid # AAAAAA;
7995+ border-radius : 4px 4px 4px 4px ;
7996+ font-size : 13px ;
7997+ font-weight : bold;
7998+ float : none;
7999+ cursor : pointer;
8000+ color : # 838181;
8001+ /*+placement:shift 488px 9px;*/
8002+ position : relative;
8003+ left : 170px ;
8004+ top : -8px ;
8005+ margin : 19px 0 0 0px ;
8006+ width : 54px ;
8007+
8008+ }
8009+
8010+ . project-selector . button . cancel : hover {
8011+ color : # 3A3A3A;
8012+
8013+ }
8014+
8015+
79918016/*** Resource management*/
79928017. project-dashboard . resources {
79938018}
Original file line number Diff line number Diff line change 533533 . append ( $ ( '<input>' ) . attr ( { type : 'submit' } ) . val ( '' ) )
534534 ) ;
535535 var $projectSelect = args . $projectSelect ;
536+ var $cancel = $ ( '<div>' ) . addClass ( 'button cancel' ) . html ( _l ( 'label.cancel' ) ) ;
536537
537538 // Get project data
538539 var loadData = function ( complete ) {
582583 return false ;
583584 } ) ;
584585
586+ //Cancel button
587+ $cancel . click ( function ( ) {
588+ $ ( ':ui-dialog, .overlay' ) . remove ( ) ;
589+ $ ( '.select.default-view' ) . click ( ) ;
590+ } ) ;
591+
592+
585593 // Initial load
586594 loadData ( function ( ) {
587595 if ( ! $list . find ( 'li' ) . size ( ) ) {
639647
640648 return $selector
641649 . append ( $toolbar )
642- . append ( $list ) ;
650+ . append ( $list )
651+ . append ( $cancel ) ;
643652 }
644653 } ;
645654
You can’t perform that action at this time.
0 commit comments