new url option switch: &noExitWarning

to better support embedding Snaplets into Moocs
pull/29/head
jmoenig 2016-12-19 08:14:01 +01:00
rodzic 4b0442dcba
commit 5dc4874352
2 zmienionych plików z 11 dodań i 3 usunięć

7
gui.js
Wyświetl plik

@ -72,7 +72,7 @@ isRetinaSupported, SliderMorph, Animation*/
// Global stuff ////////////////////////////////////////////////////////
modules.gui = '2016-December-09';
modules.gui = '2016-December-19';
// Declarations
@ -407,7 +407,10 @@ IDE_Morph.prototype.openIn = function (world) {
if (dict.hideControls) {
myself.controlBar.hide();
window.onbeforeunload = function () {nop(); };
window.onbeforeunload = nop;
}
if (dict.noExitWarning) {
window.onbeforeunload = nop;
}
}
]);

Wyświetl plik

@ -3193,6 +3193,10 @@ http://snap.berkeley.edu/run#cloud:Username=jens&ProjectName=rotation
------
* Catalan translation update, thanks, @jguille2 !
161219
------
* GUI: new url-switch: &noExitWarning
== v4.10 === (in development)
@ -3203,10 +3207,11 @@ Features:
* basic typography support for custom block labels, thanks, Bernat!!
* Treat JS-function reporters the same as variable getters wrt rings
* new url switch #dl: for downloading raw shared projects
* new url option switch: &noExitWarning
* svg support for images from the web (svg files have been supported for a long time)
* use media dialog for browsing and importing sounds
Fixes:
* Music (play note) to work again in new and recent browser versions (Chrome 55)
* IDE layout: fixed resizing issues when the window becomes too small
* Translation updates (Russian, Polish, Danish, Portuguese, Catalan)
* Translation updates (Russian, Polish, Danish, Portuguese, Catalan, German)