Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Do not permanently close read-only message
Browse files Browse the repository at this point in the history
  • Loading branch information
bobsilverberg committed Mar 19, 2015
1 parent 9a6740e commit 7438fd5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions static/js/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,9 @@ var MT = (function (MT, $) {
"Database is in READ-ONLY mode. " +
$('p', banner).text()
);
// if we have chosen to ignore the warning, let's close it
if (window.sessionStorage.getItem('ignore-readonly')) {
banner.hide();
console.warn(
'To renable the read-only warning enter: ' +
"sessionStorage.removeItem('ignore-readonly');\n" +
'in the Web Console and refresh the page.'
);
}
}
banner.on('click', '.close-button', function(event) {
event.preventDefault();
window.sessionStorage.setItem('ignore-readonly', true);
banner.fadeOut(500);
});
};
Expand Down

0 comments on commit 7438fd5

Please sign in to comment.