diff options
| author | jmoenig <jens@moenig.org> | 2013-07-30 15:19:47 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-07-30 15:19:47 +0200 |
| commit | e062dfe54862012a6d2fbe4044462c8bc2696711 (patch) | |
| tree | 27e4db9b82bf5c1077987fafd2ad55b3155e5fdf /gui.js | |
| parent | a58ffccb64e67d63c2fed1d8e0336d3c1dd36493 (diff) | |
| download | snap-e062dfe54862012a6d2fbe4044462c8bc2696711.tar.gz snap-e062dfe54862012a6d2fbe4044462c8bc2696711.zip | |
fixed #104
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2013-July-10'; +modules.gui = '2013-July-30'; // Declarations @@ -1434,6 +1434,7 @@ IDE_Morph.prototype.fixLayout = function (situation) { IDE_Morph.prototype.setProjectName = function (string) { this.projectName = string; + this.hasChangedMedia = true; this.controlBar.updateLabel(); }; @@ -2307,7 +2308,7 @@ IDE_Morph.prototype.projectMenu = function () { menu.addItem( 'Libraries...', function () { - var menu = new MenuMorph(this, 'Import library'); + var libMenu = new MenuMorph(this, 'Import library'); function loadLib(name) { var url = 'http://snap.berkeley.edu/snapsource/libraries/' @@ -2322,31 +2323,31 @@ IDE_Morph.prototype.projectMenu = function () { throw new Error('unable to retrieve ' + url); } - menu.addItem( + libMenu.addItem( 'Iteration, composition', function () { loadLib('iteration-composition'); } ); - menu.addItem( + libMenu.addItem( 'List utilities', function () { loadLib('list-utilities'); } ); - menu.addItem( + libMenu.addItem( 'Variadic reporters', function () { loadLib('variadic-reporters'); } ); - menu.addItem( + libMenu.addItem( 'Words, sentences', function () { loadLib('word-sentence'); } ); - menu.popup(world, pos); + libMenu.popup(world, pos); } ); |
