浏览代码

Updated examples

Dante 12 年之前
父节点
当前提交
2c506dc028
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      examples/index.html

+ 6 - 1
examples/index.html

@@ -190,11 +190,11 @@
         <!--
         BootstrapDialog.show({
             message: 'I sent ajax request!',
-            autospin: true,
             buttons: [{
                 icon: 'glyphicon glyphicon-send',
                 label: 'Send ajax request',
                 cssClass: 'btn-primary',
+                autospin: true,
                 action: function(dialogRef){
                     dialogRef.enableButtons(false);
                     dialogRef.setClosable(false);
@@ -203,6 +203,11 @@
                         dialogRef.close();
                     }, 5000);
                 }
+            }, {
+                label: 'Close',
+                action: function(dialogRef){
+                    dialogRef.close();
+                }
             }]
         });
         -->