File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ Array.prototype.toggleElement = function (element) {
4848} ;
4949
5050$ ( document ) . ready ( function ( ) {
51- bootbox . setDefaults ( { locale :lang [ 'locale-bootbox' ] } ) ;
5251 $ ( '#fab' ) . fab ( {
5352 buttons : [
5453 {
@@ -529,13 +528,13 @@ function notImp() {
529528
530529function notify ( body , callback ) {
531530 $ ( '#notify' ) . find ( '.btn-primary' ) . toggle ( callback !== undefined ) ;
532- $ ( '#notify' ) . find ( '.btn-primary' ) . click ( callback ) ;
531+ $ ( '#notify' ) . find ( '.btn-primary' ) . unbind ( ) . click ( callback ) ;
533532 $ ( '#notify' ) . modal ( 'show' ) . find ( '.modal-body' ) . html ( body ) ;
534533}
535534
536535function dialog ( title , value , callback ) {
537536 $ ( '#dialog' ) . find ( 'input' ) . val ( value ) ;
538- $ ( '#dialog' ) . find ( '.btn-primary' ) . click ( function ( ) {
537+ $ ( '#dialog' ) . find ( '.btn-primary' ) . unbind ( ) . click ( function ( e ) {
539538 callback ( $ ( '#dialog' ) . find ( 'input' ) . val ( ) ) ;
540539 } ) ;
541540 $ ( '#dialog' ) . modal ( 'show' ) . find ( '.modal-title' ) . text ( title ) ;
You can’t perform that action at this time.
0 commit comments