Skip to content

Commit

Permalink
Merge pull request #101 from AppBakerZ/loadingMessageInGeneratedReports
Browse files Browse the repository at this point in the history
Loading message styling in generated reports issue #45
  • Loading branch information
Furqankhanzada authored Apr 17, 2017
2 parents 3ad3c30 + a7c2b81 commit 41641bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imports/ui/components/dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ class DashboardPage extends Component {
report : report
};
// prevent window popup block
let loader = '<html> <head> <style> div{ text-align: center; font-size: 40px; margin-top: 280px } </style> </head> <body> <div> Loading...</div> </body>';
let win = window.open('');
win.document.write("<p> Loading...</p>");
win.document.write(loader);
window.oldOpen = window.open;
window.open = function(url) {
win.location = url;
Expand Down

0 comments on commit 41641bf

Please sign in to comment.