@@ -237,7 +237,6 @@ require({
237
237
window . clearTimeout ( hintTimer ) ;
238
238
}
239
239
hintTimer = setTimeout ( clearErrorsAddHints , 500 ) ;
240
- highlightRun ( ) ;
241
240
}
242
241
243
242
function scrollToLine ( lineNumber ) {
@@ -263,22 +262,6 @@ require({
263
262
}
264
263
}
265
264
266
- function highlightRun ( ) {
267
- // We don't want the run button to be enabled when the demo code is fetched in the beginning.
268
- if ( runDisabled )
269
- {
270
- $ ( '#buttonRun' ) . removeClass ( 'disabled' ) ;
271
- }
272
- else
273
- {
274
- runDisabled = true ;
275
- }
276
- }
277
-
278
- function clearRun ( ) {
279
- $ ( '#buttonRun' ) . addClass ( 'disabled' ) ;
280
- }
281
-
282
265
function openDocTab ( title , link ) {
283
266
// Bootstrap doesn't play nice with periods in tab IDs.
284
267
var escapeTitle = title . replace ( '.' , '_' ) ;
@@ -359,7 +342,6 @@ require({
359
342
}
360
343
361
344
function loadCesiumFrame ( ) {
362
- $ ( '#buttonRun' ) . addClass ( 'disabled' ) ;
363
345
cesiumFrame . get ( 0 ) . contentWindow . location . reload ( ) ;
364
346
var doc = '<html><head><script src="../../Build/Cesium/Cesium.js"></script><script type="text/javascript" src="./Sandcastle-header.js"></script><style>@import url(../../Build/Cesium/Widgets/widgets.css);\nhtml, body, #cesiumContainer {width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;}\n</style></head><body class="sandcastle-loading"><script type="text/javascript" src="./Sandcastle-client.js"></script></body></html>' ;
365
347
cesiumFrame . get ( 0 ) . contentWindow . document . open ( ) ;
@@ -589,13 +571,9 @@ require({
589
571
590
572
this . runDemo = function ( ) {
591
573
$ ( ".navbar-collapse" ) . collapse ( 'hide' ) ;
592
- // Reload the cesium frame with the new code only if run button is not disabled
593
- if ( ! ( $ ( '#buttonRun' ) . hasClass ( 'disabled' ) ) )
594
- {
595
- consoleMessages . removeAll ( ) ;
596
- runDisabled = false ;
597
- loadCesiumFrame ( ) ;
598
- }
574
+ consoleMessages . removeAll ( ) ;
575
+ runDisabled = false ;
576
+ loadCesiumFrame ( ) ;
599
577
} ;
600
578
601
579
this . runSuggest = function ( ) {
0 commit comments