File tree Expand file tree Collapse file tree 7 files changed +25
-18
lines changed Expand file tree Collapse file tree 7 files changed +25
-18
lines changed Original file line number Diff line number Diff line change 13
13
14
14
< body class ="h-100 " onresize ="fit() " onload ="fit();updateGutterVisibility(); ">
15
15
< div id ="preloader "> < img src ="images/preloader.gif " width ="100px "> < div id ="preloader-message "> </ div > </ div >
16
- <!-- <div id="liveShareBar" style="position:absolute;top:0px;left:60px;padding:4px;width:100px;height:30px;background-color:#41A030;color:white;z-index: 1000">Live Sharing</div> -->
17
16
< div id ="navview " data-role ="navview " style ="display:none ">
18
17
< div class ="navview-pane ">
19
18
< button class ="pull-button ">
20
19
< span class ="default-icon-menu " id ="toggleNavViewPane "> </ span >
21
20
</ button >
22
21
< ul class ="navview-menu ">
23
- < li class ="item-header "> Epsilon Playground</ li >
24
- < li class ="item-separator "> </ li >
25
- < li id ="liveShareStatus ">
26
- < a href ="# " onclick ="showLiveShare(event) ">
27
- < span class ="icon "> < span class ="mif-example-16 mif-liveshare "> </ span > </ span >
28
- < span class ="caption "> Live Sharing</ span >
29
- </ a >
22
+ < li class ="item-header "> Epsilon Playground
23
+ < span class ="badges " style ="display:none;float:right;position:relative;top:-2px " id ="liveShareTitleBadges ">
24
+ < span class ="badge inline " style ="font-size:12px; background-color:#41A030;color:white "> LIVE</ span >
25
+ </ span >
30
26
</ li >
27
+ < li class ="item-separator "> </ li >
31
28
< li class ="item-separator " id ="examplesEnd "> </ li >
32
29
< li >
33
30
< a href ="# " onclick ="showLiveShare(event) " id ="liveShare ">
Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ class DownloadDialog {
111
111
caption : "Cancel" ,
112
112
cls : "js-dialog-close"
113
113
}
114
- ]
114
+ ] ,
115
+ closeButton : true
115
116
} ) ;
116
117
}
117
118
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ class LiveShareDialog {
39
39
cls : "js-dialog-close"
40
40
}
41
41
42
- ]
42
+ ] ,
43
+ closeButton : true
43
44
} ) ;
44
45
} ) ;
45
46
}
Original file line number Diff line number Diff line change @@ -51,11 +51,16 @@ class LiveShareManager {
51
51
52
52
showLiveShareStatus ( status ) {
53
53
var liveShareBadges = document . getElementById ( "liveShareBadges" ) ;
54
- if ( status ) liveShareBadges . style . display = "block" ;
55
- else liveShareBadges . style . display = "none" ;
56
-
57
- var liveShareStatus = document . getElementById ( "liveShareStatus" ) ;
58
- liveShareStatus . style . display = liveShareBadges . style . display ;
54
+ var liveShareTitleBadges = document . getElementById ( "liveShareTitleBadges" ) ;
55
+
56
+ if ( status ) {
57
+ liveShareBadges . style . display = "block" ;
58
+ liveShareTitleBadges . style . display = "inline" ;
59
+ }
60
+ else {
61
+ liveShareBadges . style . display = "none" ;
62
+ liveShareTitleBadges . style . display = "none" ;
63
+ }
59
64
}
60
65
61
66
startSession ( ) {
Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ class OutputPanel extends ModelPanel {
72
72
caption : "Cancel" ,
73
73
cls : "js-dialog-close"
74
74
}
75
- ]
75
+ ] ,
76
+ closeButton : true
76
77
} ) ;
77
78
}
78
79
Original file line number Diff line number Diff line change @@ -140,7 +140,8 @@ function copyShortenedLink(event) {
140
140
onclick : function ( ) {
141
141
copyToClipboard ( baseUrl + "?" + json . shortened ) ;
142
142
}
143
- } ]
143
+ } ] ,
144
+ closeButton : true
144
145
} ) ;
145
146
}
146
147
Metro . notify . killAll ( ) ;
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ class SettingsDialog {
46
46
caption : "Cancel" ,
47
47
cls : "js-dialog-close"
48
48
}
49
- ]
49
+ ] ,
50
+ closeButton : true
50
51
} ) ;
51
52
}
52
53
You can’t perform that action at this time.
0 commit comments