Commit e2f462f6 authored by carlosperate's avatar carlosperate

Patch Materialize to not leave behind dark overlays on modal close.

The path will not create additional overlays when an open modal is reopened, and instead bring it to top.

The additional code has been added too the minified version of materialize.js and a noted added to the README.md

Fixes #33.
parent 8e31049e
......@@ -307,21 +307,14 @@ Ardublockly.openNotConnectedModal = function() {
});
};
/** Tracks if the settings modal is currently opened. */
Ardublockly.settingsOpen = false;
/** Opens the modal that displays the Settings. */
Ardublockly.openSettingsModal = function() {
if (!Ardublockly.settingsOpen) {
Ardublockly.settingsOpen = true;
$('#settings_dialog').openModal({
dismissible: true,
opacity: .5,
in_duration: 200,
out_duration: 250,
complete: function() { Ardublockly.settingsOpen = false; }
out_duration: 250
});
}
};
/**
......
......@@ -5,3 +5,5 @@ This folder contains the CSS and Javascript for the Materialize CSS framework.
https://github.com/Dogfalo/materialize
Current version used: >0.97.5 [@09cd7116129c3f3b9879c24f7ff688e8c7da18f2 commit](https://github.com/Dogfalo/materialize/commit/09cd7116129c3f3b9879c24f7ff688e8c7da18f2)
There has been a patch added to the minified javascript file. The issue is described in https://github.com/Dogfalo/materialize/issues/1647 and fixed by un-merged PR https://github.com/Dogfalo/materialize/pull/1691 .
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment