Skip to content

Commit

Permalink
database maintenance modal pops up on page load.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoderjen committed Dec 21, 2016
1 parent 039a00a commit 82b90a7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blockscad/blockscad.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ Blockscad.init = function() {
// I'm running it in a timeout to make sure any events have had time to fire. What a pain.


// are there any messages to show?
$('#outage-modal').modal('show');


setTimeout(Blockscad.typeWorkspace, 10);


Expand Down
18 changes: 18 additions & 0 deletions blockscad/bsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,24 @@ output += ' </div>\n';
output += ' </div>\n';
output += ' </div>\n';
output += ' </div>\n';



output += '<div id="outage-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="outage-modal" aria-hidden="true">\n';
output += ' <div class="modal-dialog">\n';
output += ' <div class="modal-content">\n';
output += ' <div class="modal-header">\n';
output += ' <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n';
output += ' <h3 class="modal-title">Scheduled Database Maintenance Dec. 27</h3>\n';
output += ' </div>\n';
output += ' <div class="modal-body">\n';
output += ' <div>\n';
output += ' On Dec. 27, 2016, we will be upgrading the BlocksCAD project database. During this time, login will be disabled and you won\'t have access to your account or your saved projects. ';
output += ' <br><br>If you plan to work on specific projects that day, be sure to download them to your computer before Dec. 27. Any edits to these projects or any new creations will need to be saved to your computer that day as well. \n';
output += ' </div>\n';
output += ' </div>\n';
output += ' </div>\n';
output += '</div>\n';
// output += ' <!-- end of popups --> \n';

return output;
Expand Down

0 comments on commit 82b90a7

Please sign in to comment.