Add pleaseWaitDialog and functions to use it
Benjamin Renard

Benjamin Renard commited on 2014-01-12 19:33:11
Showing 2 changed files, with 21 additions and 0 deletions.

... ...
@@ -532,6 +532,17 @@ on_click_logoff_btn=function() {
532 532
   logged_out_menu();
533 533
 }
534 534
 
535
+/*******************
536
+ * pleaseWaitDialog
537
+ *******************/
538
+
539
+pleaseWaitShow=function() {
540
+  $('#pleaseWaitDialog').modal('show');
541
+}
542
+
543
+pleaseWaitHide=function() {
544
+  $('#pleaseWaitDialog').modal('hide');
545
+}
535 546
 
536 547
 /*********************
537 548
  * Activate
... ...
@@ -399,6 +399,16 @@ body{
399 399
   </div><!-- /.modal-dialog -->
400 400
 </div>
401 401
 
402
+<div class="modal hide" id="pleaseWaitDialog" data-backdrop="static" data-keyboard="false">
403
+  <div class="modal-header">
404
+    <h1>Chargement...</h1>
405
+  </div>
406
+  <div class="modal-body">
407
+    <div class="progress progress-striped active">
408
+      <div class="bar" style="width: 100%;"></div>
409
+    </div>
410
+  </div>
411
+</div>
402 412
 
403 413
 </div>
404 414
   <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
405 415