mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Updated the Alertify to use latest version 1.7.0
This commit is contained in:
parent
b85fa58344
commit
f247153920
@ -7,7 +7,7 @@ QT 4.6.2+ LGPL v2.1/3 http://www.qt.io/
|
|||||||
Bootstrap 3.3.4 MIT http://getbootstrap.com/
|
Bootstrap 3.3.4 MIT http://getbootstrap.com/
|
||||||
jQuery 1.11.1 MIT http://jquery.com/
|
jQuery 1.11.1 MIT http://jquery.com/
|
||||||
Modernizr 2.6.2 MIT/BSD http://modernizr.com/
|
Modernizr 2.6.2 MIT/BSD http://modernizr.com/
|
||||||
AlertifyJS 1.1.0 MIT http://alertifyjs.com/
|
AlertifyJS 1.7.0 MIT http://alertifyjs.com/
|
||||||
CodeMirror 5.14.2 MIT http://codemirror.net/
|
CodeMirror 5.14.2 MIT http://codemirror.net/
|
||||||
aciTree 4.5.0-rc.7 MIT/GPL http://acoderinsights.ro/en/aciTree-tree-view-with-jQuery
|
aciTree 4.5.0-rc.7 MIT/GPL http://acoderinsights.ro/en/aciTree-tree-view-with-jQuery
|
||||||
contextMenu 2.1.0 MIT https://github.com/swisnl/jQuery-contextMenu
|
contextMenu 2.1.0 MIT https://github.com/swisnl/jQuery-contextMenu
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dimmer {
|
.alertify .ajs-dimmer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dimmer {
|
.alertify .ajs-dimmer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dimmer {
|
.alertify .ajs-dimmer {
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dimmer{background-color:#000;opacity:.5}.alertify .ajs-dialog{max-width:600px;min-height:122px;background-color:#fff;border:1px solid rgba(0,0,0,.2);box-shadow:0 5px 15px rgba(0,0,0,.5);border-radius:6px}.alertify .ajs-header{color:#333;border-bottom:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:18px}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#000}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:58px;bottom:68px}.alertify .ajs-footer{background-color:#fff;padding:15px;border-top:1px solid #e5e5e5;border-radius:0 0 6px 6px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
.alertify .ajs-dimmer{background-color:#000;opacity:.5}.alertify .ajs-dialog{max-width:600px;min-height:122px;background-color:#fff;border:1px solid rgba(0,0,0,.2);box-shadow:0 5px 15px rgba(0,0,0,.5);border-radius:6px}.alertify .ajs-header{color:#333;border-bottom:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:18px}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#000}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:58px;bottom:68px}.alertify .ajs-footer{background-color:#fff;padding:15px;border-top:1px solid #e5e5e5;border-radius:0 0 6px 6px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dimmer {
|
.alertify .ajs-dimmer {
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dimmer{background-color:#000;opacity:.5}.alertify .ajs-dialog{max-width:600px;min-height:122px;background-color:#fff;border:1px solid rgba(0,0,0,.2);box-shadow:0 5px 15px rgba(0,0,0,.5);border-radius:6px}.alertify .ajs-header{color:#333;border-bottom:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:18px}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#000}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:58px;bottom:68px}.alertify .ajs-footer{background-color:#fff;padding:15px;border-top:1px solid #e5e5e5;border-radius:0 0 6px 6px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
.alertify .ajs-dimmer{background-color:#000;opacity:.5}.alertify .ajs-dialog{max-width:600px;min-height:122px;background-color:#fff;border:1px solid rgba(0,0,0,.2);box-shadow:0 5px 15px rgba(0,0,0,.5);border-radius:6px}.alertify .ajs-header{color:#333;border-bottom:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:18px}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#000}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:58px;bottom:68px}.alertify .ajs-footer{background-color:#fff;padding:15px;border-top:1px solid #e5e5e5;border-radius:0 0 6px 6px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dialog {
|
.alertify .ajs-dialog {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dialog{background-color:#fff;box-shadow:0 15px 20px 0 rgba(0,0,0,.25);border-radius:2px}.alertify .ajs-header{color:#000;font-weight:700;background:#fafafa;border-bottom:#eee 1px solid;border-radius:2px 2px 0 0}.alertify .ajs-body{color:#000}.alertify .ajs-body .ajs-content .ajs-input{display:block;width:100%;padding:8px;margin:4px;border-radius:2px;border:1px solid #CCC}.alertify .ajs-body .ajs-content p{margin:0}.alertify .ajs-footer{background:#fbfbfb;border-top:#eee 1px solid;border-radius:0 0 2px 2px}.alertify .ajs-footer .ajs-buttons .ajs-button{background-color:transparent;color:#000;border:0;font-size:14px;font-weight:700;text-transform:uppercase}.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok{color:#3593D2}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
.alertify .ajs-dialog{background-color:#fff;box-shadow:0 15px 20px 0 rgba(0,0,0,.25);border-radius:2px}.alertify .ajs-header{color:#000;font-weight:700;background:#fafafa;border-bottom:#eee 1px solid;border-radius:2px 2px 0 0}.alertify .ajs-body{color:#000}.alertify .ajs-body .ajs-content .ajs-input{display:block;width:100%;padding:8px;margin:4px;border-radius:2px;border:1px solid #CCC}.alertify .ajs-body .ajs-content p{margin:0}.alertify .ajs-footer{background:#fbfbfb;border-top:#eee 1px solid;border-radius:0 0 2px 2px}.alertify .ajs-footer .ajs-buttons .ajs-button{background-color:transparent;color:#000;border:0;font-size:14px;font-weight:700;text-transform:uppercase}.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok{color:#3593D2}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dialog {
|
.alertify .ajs-dialog {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dialog{background-color:#fff;box-shadow:0 15px 20px 0 rgba(0,0,0,.25);border-radius:2px}.alertify .ajs-header{color:#000;font-weight:700;background:#fafafa;border-bottom:#eee 1px solid;border-radius:2px 2px 0 0}.alertify .ajs-body{color:#000}.alertify .ajs-body .ajs-content .ajs-input{display:block;width:100%;padding:8px;margin:4px;border-radius:2px;border:1px solid #CCC}.alertify .ajs-body .ajs-content p{margin:0}.alertify .ajs-footer{background:#fbfbfb;border-top:#eee 1px solid;border-radius:0 0 2px 2px}.alertify .ajs-footer .ajs-buttons .ajs-button{background-color:transparent;color:#000;border:0;font-size:14px;font-weight:700;text-transform:uppercase}.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok{color:#3593D2}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
.alertify .ajs-dialog{background-color:#fff;box-shadow:0 15px 20px 0 rgba(0,0,0,.25);border-radius:2px}.alertify .ajs-header{color:#000;font-weight:700;background:#fafafa;border-bottom:#eee 1px solid;border-radius:2px 2px 0 0}.alertify .ajs-body{color:#000}.alertify .ajs-body .ajs-content .ajs-input{display:block;width:100%;padding:8px;margin:4px;border-radius:2px;border:1px solid #CCC}.alertify .ajs-body .ajs-content p{margin:0}.alertify .ajs-footer{background:#fbfbfb;border-top:#eee 1px solid;border-radius:0 0 2px 2px}.alertify .ajs-footer .ajs-buttons .ajs-button{background-color:transparent;color:#000;border:0;font-size:14px;font-weight:700;text-transform:uppercase}.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok{color:#3593D2}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dimmer {
|
.alertify .ajs-dimmer {
|
||||||
background-color: rgba(0, 0, 0, 0.85);
|
background-color: rgba(0, 0, 0, 0.85);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dimmer{background-color:rgba(0,0,0,.85);opacity:1}.alertify .ajs-dialog{max-width:50%;min-height:137px;background-color:#F4F4F4;border:1px solid #DDD;box-shadow:none;border-radius:5px}.alertify .ajs-header{padding:1.5rem 2rem;border-bottom:none;border-radius:5px 5px 0 0;color:#555;background-color:#fff;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1.6em;font-weight:700}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#555}.alertify .ajs-body .ajs-content .ajs-input{width:100%;margin:0;padding:.65em 1em;font-size:1em;background-color:#FFF;border:1px solid rgba(0,0,0,.15);outline:0;color:rgba(0,0,0,.7);border-radius:.3125em;transition:background-color .3s ease-out,box-shadow .2s ease,border-color .2s ease;box-sizing:border-box}.alertify .ajs-body .ajs-content .ajs-input:active{border-color:rgba(0,0,0,.3);background-color:#FAFAFA}.alertify .ajs-body .ajs-content .ajs-input:focus{border-color:rgba(0,0,0,.2);color:rgba(0,0,0,.85)}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:64px;bottom:74px}.alertify .ajs-footer{background-color:#fff;padding:1rem 2rem;border-top:none;border-radius:0 0 5px 5px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
.alertify .ajs-dimmer{background-color:rgba(0,0,0,.85);opacity:1}.alertify .ajs-dialog{max-width:50%;min-height:137px;background-color:#F4F4F4;border:1px solid #DDD;box-shadow:none;border-radius:5px}.alertify .ajs-header{padding:1.5rem 2rem;border-bottom:none;border-radius:5px 5px 0 0;color:#555;background-color:#fff;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1.6em;font-weight:700}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#555}.alertify .ajs-body .ajs-content .ajs-input{width:100%;margin:0;padding:.65em 1em;font-size:1em;background-color:#FFF;border:1px solid rgba(0,0,0,.15);outline:0;color:rgba(0,0,0,.7);border-radius:.3125em;transition:background-color .3s ease-out,box-shadow .2s ease,border-color .2s ease;box-sizing:border-box}.alertify .ajs-body .ajs-content .ajs-input:active{border-color:rgba(0,0,0,.3);background-color:#FAFAFA}.alertify .ajs-body .ajs-content .ajs-input:focus{border-color:rgba(0,0,0,.2);color:rgba(0,0,0,.85)}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:64px;bottom:74px}.alertify .ajs-footer{background-color:#fff;padding:1rem 2rem;border-top:none;border-radius:0 0 5px 5px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:-1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dimmer {
|
.alertify .ajs-dimmer {
|
||||||
background-color: rgba(0, 0, 0, 0.85);
|
background-color: rgba(0, 0, 0, 0.85);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
.alertify .ajs-dimmer{background-color:rgba(0,0,0,.85);opacity:1}.alertify .ajs-dialog{max-width:50%;min-height:137px;background-color:#F4F4F4;border:1px solid #DDD;box-shadow:none;border-radius:5px}.alertify .ajs-header{padding:1.5rem 2rem;border-bottom:none;border-radius:5px 5px 0 0;color:#555;background-color:#fff;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1.6em;font-weight:700}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#555}.alertify .ajs-body .ajs-content .ajs-input{width:100%;margin:0;padding:.65em 1em;font-size:1em;background-color:#FFF;border:1px solid rgba(0,0,0,.15);outline:0;color:rgba(0,0,0,.7);border-radius:.3125em;transition:background-color .3s ease-out,box-shadow .2s ease,border-color .2s ease;box-sizing:border-box}.alertify .ajs-body .ajs-content .ajs-input:active{border-color:rgba(0,0,0,.3);background-color:#FAFAFA}.alertify .ajs-body .ajs-content .ajs-input:focus{border-color:rgba(0,0,0,.2);color:rgba(0,0,0,.85)}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:64px;bottom:74px}.alertify .ajs-footer{background-color:#fff;padding:1rem 2rem;border-top:none;border-radius:0 0 5px 5px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
.alertify .ajs-dimmer{background-color:rgba(0,0,0,.85);opacity:1}.alertify .ajs-dialog{max-width:50%;min-height:137px;background-color:#F4F4F4;border:1px solid #DDD;box-shadow:none;border-radius:5px}.alertify .ajs-header{padding:1.5rem 2rem;border-bottom:none;border-radius:5px 5px 0 0;color:#555;background-color:#fff;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1.6em;font-weight:700}.alertify .ajs-body{font-family:Roboto,sans-serif;color:#555}.alertify .ajs-body .ajs-content .ajs-input{width:100%;margin:0;padding:.65em 1em;font-size:1em;background-color:#FFF;border:1px solid rgba(0,0,0,.15);outline:0;color:rgba(0,0,0,.7);border-radius:.3125em;transition:background-color .3s ease-out,box-shadow .2s ease,border-color .2s ease;box-sizing:border-box}.alertify .ajs-body .ajs-content .ajs-input:active{border-color:rgba(0,0,0,.3);background-color:#FAFAFA}.alertify .ajs-body .ajs-content .ajs-input:focus{border-color:rgba(0,0,0,.2);color:rgba(0,0,0,.85)}.alertify.ajs-maximized:not(.ajs-resizable) .ajs-content,.alertify.ajs-resizable .ajs-content{top:64px;bottom:74px}.alertify .ajs-footer{background-color:#fff;padding:1rem 2rem;border-top:none;border-radius:0 0 5px 5px}.alertify-notifier .ajs-message{background:rgba(255,255,255,.95);color:#000;text-align:center;border:1px solid #ddd;border-radius:2px}.alertify-notifier .ajs-message.ajs-success{color:#fff;background:rgba(91,189,114,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-error{color:#fff;background:rgba(217,92,92,.95);text-shadow:1px -1px 0 rgba(0,0,0,.5)}.alertify-notifier .ajs-message.ajs-warning{background:rgba(252,248,215,.95);border-color:#999}
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* alertifyjs 1.4.1 http://alertifyjs.com
|
* alertifyjs 1.7.0 http://alertifyjs.com
|
||||||
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
|
||||||
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
* Copyright 2016 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com)
|
||||||
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/
|
||||||
( function ( window ) {
|
( function ( window ) {
|
||||||
'use strict';
|
'use strict';
|
||||||
@ -27,6 +27,7 @@
|
|||||||
basic:false,
|
basic:false,
|
||||||
frameless:false,
|
frameless:false,
|
||||||
movable:true,
|
movable:true,
|
||||||
|
moveBounded:false,
|
||||||
resizable:true,
|
resizable:true,
|
||||||
closable:true,
|
closable:true,
|
||||||
closableByDimmer:true,
|
closableByDimmer:true,
|
||||||
@ -85,12 +86,17 @@
|
|||||||
*
|
*
|
||||||
* @return {undefined}
|
* @return {undefined}
|
||||||
*/
|
*/
|
||||||
function removeClass(element,classNames){
|
function removeClass(element, classNames) {
|
||||||
var classes = classNames.split(' ');
|
var original = element.className.split(' ');
|
||||||
for(var x=0;x<classes.length;x+=1){
|
var toBeRemoved = classNames.split(' ');
|
||||||
element.className = element.className.replace(' ' + classes[x], '');
|
for (var x = 0; x < toBeRemoved.length; x += 1) {
|
||||||
|
var index = original.indexOf(toBeRemoved[x]);
|
||||||
|
if (index > -1){
|
||||||
|
original.splice(index,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
element.className = original.join(' ');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* [Helper] Checks if the document is RTL
|
* [Helper] Checks if the document is RTL
|
||||||
@ -127,7 +133,68 @@
|
|||||||
element.removeChild(element.lastChild);
|
element.removeChild(element.lastChild);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Extends a given prototype by merging properties from base into sub.
|
||||||
|
*
|
||||||
|
* @sub {Object} sub The prototype being overwritten.
|
||||||
|
* @base {Object} base The prototype being written.
|
||||||
|
*
|
||||||
|
* @return {Object} The extended prototype.
|
||||||
|
*/
|
||||||
|
function copy(src) {
|
||||||
|
if(null === src){
|
||||||
|
return src;
|
||||||
|
}
|
||||||
|
var cpy;
|
||||||
|
if(Array.isArray(src)){
|
||||||
|
cpy = [];
|
||||||
|
for(var x=0;x<src.length;x+=1){
|
||||||
|
cpy.push(copy(src[x]));
|
||||||
|
}
|
||||||
|
return cpy;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(src instanceof Date){
|
||||||
|
return new Date(src.getTime());
|
||||||
|
}
|
||||||
|
|
||||||
|
if(src instanceof RegExp){
|
||||||
|
cpy = new RegExp(src.source);
|
||||||
|
cpy.global = src.global;
|
||||||
|
cpy.ignoreCase = src.ignoreCase;
|
||||||
|
cpy.multiline = src.multiline;
|
||||||
|
cpy.lastIndex = src.lastIndex;
|
||||||
|
return cpy;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(typeof src === 'object'){
|
||||||
|
cpy = {};
|
||||||
|
// copy dialog pototype over definition.
|
||||||
|
for (var prop in src) {
|
||||||
|
if (src.hasOwnProperty(prop)) {
|
||||||
|
cpy[prop] = copy(src[prop]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return cpy;
|
||||||
|
}
|
||||||
|
return src;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Helper: destruct the dialog
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
function destruct(instance, initialize){
|
||||||
|
//delete the dom and it's references.
|
||||||
|
var root = instance.elements.root;
|
||||||
|
root.parentNode.removeChild(root);
|
||||||
|
delete instance.elements;
|
||||||
|
//copy back initial settings.
|
||||||
|
instance.settings = copy(instance.__settings);
|
||||||
|
//re-reference init function.
|
||||||
|
instance.__init = initialize;
|
||||||
|
//delete __internal variable to allow re-initialization.
|
||||||
|
delete instance.__internal;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use a closure to return proper event listener method. Try to use
|
* Use a closure to return proper event listener method. Try to use
|
||||||
@ -246,6 +313,19 @@
|
|||||||
cancel: false
|
cancel: false
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Helper for dispatching events.
|
||||||
|
*
|
||||||
|
* @param {string} evenType The type of the event to disptach.
|
||||||
|
* @param {object} instance The dialog instance disptaching the event.
|
||||||
|
*
|
||||||
|
* @return {object}
|
||||||
|
*/
|
||||||
|
function dispatchEvent(eventType, instance) {
|
||||||
|
if ( typeof instance.get(eventType) === 'function' ) {
|
||||||
|
instance.get(eventType).call(instance);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -316,6 +396,10 @@
|
|||||||
//no need to expose init after this.
|
//no need to expose init after this.
|
||||||
delete instance.__init;
|
delete instance.__init;
|
||||||
|
|
||||||
|
//keep a copy of initial dialog settings
|
||||||
|
if(!instance.__settings){
|
||||||
|
instance.__settings = copy(instance.settings);
|
||||||
|
}
|
||||||
//in case the script was included before body.
|
//in case the script was included before body.
|
||||||
//after first dialog gets initialized, it won't be null anymore!
|
//after first dialog gets initialized, it won't be null anymore!
|
||||||
if(null === reflow){
|
if(null === reflow){
|
||||||
@ -352,13 +436,13 @@
|
|||||||
if(Array.isArray(setup.buttons)){
|
if(Array.isArray(setup.buttons)){
|
||||||
for(var b=0;b<setup.buttons.length;b+=1){
|
for(var b=0;b<setup.buttons.length;b+=1){
|
||||||
var ref = setup.buttons[b],
|
var ref = setup.buttons[b],
|
||||||
copy = {};
|
cpy = {};
|
||||||
for (var i in ref) {
|
for (var i in ref) {
|
||||||
if (ref.hasOwnProperty(i)) {
|
if (ref.hasOwnProperty(i)) {
|
||||||
copy[i] = ref[i];
|
cpy[i] = ref[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buttonsDefinition.push(copy);
|
buttonsDefinition.push(cpy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -388,6 +472,7 @@
|
|||||||
frameless:undefined,
|
frameless:undefined,
|
||||||
pinned: undefined,
|
pinned: undefined,
|
||||||
movable: undefined,
|
movable: undefined,
|
||||||
|
moveBounded:undefined,
|
||||||
resizable: undefined,
|
resizable: undefined,
|
||||||
autoReset: undefined,
|
autoReset: undefined,
|
||||||
closable: undefined,
|
closable: undefined,
|
||||||
@ -401,6 +486,14 @@
|
|||||||
onshow:undefined,
|
onshow:undefined,
|
||||||
onclose:undefined,
|
onclose:undefined,
|
||||||
onfocus:undefined,
|
onfocus:undefined,
|
||||||
|
onmove:undefined,
|
||||||
|
onmoved:undefined,
|
||||||
|
onresize:undefined,
|
||||||
|
onresized:undefined,
|
||||||
|
onmaximize:undefined,
|
||||||
|
onmaximized:undefined,
|
||||||
|
onrestore:undefined,
|
||||||
|
onrestored:undefined
|
||||||
},
|
},
|
||||||
resetHandler:undefined,
|
resetHandler:undefined,
|
||||||
beginMoveHandler:undefined,
|
beginMoveHandler:undefined,
|
||||||
@ -410,7 +503,8 @@
|
|||||||
buttonsClickHandler:undefined,
|
buttonsClickHandler:undefined,
|
||||||
commandsClickHandler:undefined,
|
commandsClickHandler:undefined,
|
||||||
transitionInHandler:undefined,
|
transitionInHandler:undefined,
|
||||||
transitionOutHandler:undefined
|
transitionOutHandler:undefined,
|
||||||
|
destroy:undefined
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -514,6 +608,7 @@
|
|||||||
instance.set('frameless', setup.options.frameless === undefined ? alertify.defaults.frameless : setup.options.frameless);
|
instance.set('frameless', setup.options.frameless === undefined ? alertify.defaults.frameless : setup.options.frameless);
|
||||||
|
|
||||||
instance.set('movable', setup.options.movable === undefined ? alertify.defaults.movable : setup.options.movable);
|
instance.set('movable', setup.options.movable === undefined ? alertify.defaults.movable : setup.options.movable);
|
||||||
|
instance.set('moveBounded', setup.options.moveBounded === undefined ? alertify.defaults.moveBounded : setup.options.moveBounded);
|
||||||
instance.set('resizable', setup.options.resizable === undefined ? alertify.defaults.resizable : setup.options.resizable);
|
instance.set('resizable', setup.options.resizable === undefined ? alertify.defaults.resizable : setup.options.resizable);
|
||||||
instance.set('autoReset', setup.options.autoReset === undefined ? alertify.defaults.autoReset : setup.options.autoReset);
|
instance.set('autoReset', setup.options.autoReset === undefined ? alertify.defaults.autoReset : setup.options.autoReset);
|
||||||
|
|
||||||
@ -547,8 +642,8 @@
|
|||||||
*/
|
*/
|
||||||
var scrollX, scrollY;
|
var scrollX, scrollY;
|
||||||
function saveScrollPosition(){
|
function saveScrollPosition(){
|
||||||
scrollX = window.scrollX;
|
scrollX = getScrollLeft();
|
||||||
scrollY = window.scrollY;
|
scrollY = getScrollTop();
|
||||||
}
|
}
|
||||||
function restoreScrollPosition(){
|
function restoreScrollPosition(){
|
||||||
window.scrollTo(scrollX, scrollY);
|
window.scrollTo(scrollX, scrollY);
|
||||||
@ -920,11 +1015,15 @@
|
|||||||
* @return {undefined}
|
* @return {undefined}
|
||||||
*/
|
*/
|
||||||
function maximize(instance) {
|
function maximize(instance) {
|
||||||
|
// allow custom `onmaximize` method
|
||||||
|
dispatchEvent('onmaximize', instance);
|
||||||
//maximize the dialog
|
//maximize the dialog
|
||||||
addClass(instance.elements.root, classes.maximized);
|
addClass(instance.elements.root, classes.maximized);
|
||||||
if (instance.isOpen()) {
|
if (instance.isOpen()) {
|
||||||
ensureNoOverflow();
|
ensureNoOverflow();
|
||||||
}
|
}
|
||||||
|
// allow custom `onmaximized` method
|
||||||
|
dispatchEvent('onmaximized', instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -935,11 +1034,15 @@
|
|||||||
* @return {undefined}
|
* @return {undefined}
|
||||||
*/
|
*/
|
||||||
function restore(instance) {
|
function restore(instance) {
|
||||||
|
// allow custom `onrestore` method
|
||||||
|
dispatchEvent('onrestore', instance);
|
||||||
//maximize the dialog
|
//maximize the dialog
|
||||||
removeClass(instance.elements.root, classes.maximized);
|
removeClass(instance.elements.root, classes.maximized);
|
||||||
if (instance.isOpen()) {
|
if (instance.isOpen()) {
|
||||||
ensureNoOverflow();
|
ensureNoOverflow();
|
||||||
}
|
}
|
||||||
|
// allow custom `onrestored` method
|
||||||
|
dispatchEvent('onrestored', instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1337,9 +1440,7 @@
|
|||||||
cancelKeyup = false;
|
cancelKeyup = false;
|
||||||
|
|
||||||
// allow custom `onfocus` method
|
// allow custom `onfocus` method
|
||||||
if (typeof instance.get('onfocus') === 'function') {
|
dispatchEvent('onfocus', instance);
|
||||||
instance.get('onfocus').call(instance);
|
|
||||||
}
|
|
||||||
|
|
||||||
// unbind the event
|
// unbind the event
|
||||||
off(instance.elements.dialog, transition.type, instance.__internal.transitionInHandler);
|
off(instance.elements.dialog, transition.type, instance.__internal.transitionInHandler);
|
||||||
@ -1376,6 +1477,11 @@
|
|||||||
instance.__internal.activeElement.focus();
|
instance.__internal.activeElement.focus();
|
||||||
instance.__internal.activeElement = null;
|
instance.__internal.activeElement = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//destory the instance
|
||||||
|
if (typeof instance.__internal.destroy === 'function') {
|
||||||
|
instance.__internal.destroy.apply(instance);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* Controls moving a dialog around */
|
/* Controls moving a dialog around */
|
||||||
//holde the current moving instance
|
//holde the current moving instance
|
||||||
@ -1385,7 +1491,10 @@
|
|||||||
//holds the current Y offset when move starts
|
//holds the current Y offset when move starts
|
||||||
offsetY = 0,
|
offsetY = 0,
|
||||||
xProp = 'pageX',
|
xProp = 'pageX',
|
||||||
yProp = 'pageY'
|
yProp = 'pageY',
|
||||||
|
bounds = null,
|
||||||
|
refreshTop = false,
|
||||||
|
moveDelegate = null
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1397,10 +1506,42 @@
|
|||||||
* @return {undefined}
|
* @return {undefined}
|
||||||
*/
|
*/
|
||||||
function moveElement(event, element) {
|
function moveElement(event, element) {
|
||||||
element.style.left = (event[xProp] - offsetX) + 'px';
|
var left = (event[xProp] - offsetX),
|
||||||
element.style.top = (event[yProp] - offsetY) + 'px';
|
top = (event[yProp] - offsetY);
|
||||||
|
|
||||||
|
if(refreshTop){
|
||||||
|
top -= document.body.scrollTop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
element.style.left = left + 'px';
|
||||||
|
element.style.top = top + 'px';
|
||||||
|
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Helper: sets the element top/left coordinates within screen bounds
|
||||||
|
*
|
||||||
|
* @param {Event} event DOM event object.
|
||||||
|
* @param {Node} element The element being moved.
|
||||||
|
*
|
||||||
|
* @return {undefined}
|
||||||
|
*/
|
||||||
|
function moveElementBounded(event, element) {
|
||||||
|
var left = (event[xProp] - offsetX),
|
||||||
|
top = (event[yProp] - offsetY);
|
||||||
|
|
||||||
|
if(refreshTop){
|
||||||
|
top -= document.body.scrollTop;
|
||||||
|
}
|
||||||
|
|
||||||
|
element.style.left = Math.min(bounds.maxLeft, Math.max(bounds.minLeft, left)) + 'px';
|
||||||
|
if(refreshTop){
|
||||||
|
element.style.top = Math.min(bounds.maxTop, Math.max(bounds.minTop, top)) + 'px';
|
||||||
|
}else{
|
||||||
|
element.style.top = Math.max(bounds.minTop, top) + 'px';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Triggers the start of a move event, attached to the header element mouse down event.
|
* Triggers the start of a move event, attached to the header element mouse down event.
|
||||||
* Adds no-selection class to the body, disabling selection while moving.
|
* Adds no-selection class to the body, disabling selection while moving.
|
||||||
@ -1412,7 +1553,7 @@
|
|||||||
*/
|
*/
|
||||||
function beginMove(event, instance) {
|
function beginMove(event, instance) {
|
||||||
if (resizable === null && !instance.isMaximized() && instance.get('movable')) {
|
if (resizable === null && !instance.isMaximized() && instance.get('movable')) {
|
||||||
var eventSrc;
|
var eventSrc, left=0, top=0;
|
||||||
if (event.type === 'touchstart') {
|
if (event.type === 'touchstart') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
eventSrc = event.targetTouches[0];
|
eventSrc = event.targetTouches[0];
|
||||||
@ -1424,22 +1565,55 @@
|
|||||||
|
|
||||||
if (eventSrc) {
|
if (eventSrc) {
|
||||||
|
|
||||||
movable = instance;
|
|
||||||
offsetX = eventSrc[xProp];
|
|
||||||
offsetY = eventSrc[yProp];
|
|
||||||
|
|
||||||
var element = instance.elements.dialog;
|
var element = instance.elements.dialog;
|
||||||
addClass(element, classes.capture);
|
addClass(element, classes.capture);
|
||||||
|
|
||||||
if (element.style.left) {
|
if (element.style.left) {
|
||||||
offsetX -= parseInt(element.style.left, 10);
|
left = parseInt(element.style.left, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element.style.top) {
|
if (element.style.top) {
|
||||||
offsetY -= parseInt(element.style.top, 10);
|
top = parseInt(element.style.top, 10);
|
||||||
}
|
}
|
||||||
moveElement(eventSrc, element);
|
|
||||||
|
|
||||||
|
offsetX = eventSrc[xProp] - left;
|
||||||
|
offsetY = eventSrc[yProp] - top;
|
||||||
|
|
||||||
|
if(instance.isModal()){
|
||||||
|
offsetY += instance.elements.modal.scrollTop;
|
||||||
|
}else if(instance.isPinned()){
|
||||||
|
offsetY -= document.body.scrollTop;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(instance.get('moveBounded')){
|
||||||
|
var current = element,
|
||||||
|
offsetLeft = -left,
|
||||||
|
offsetTop = -top;
|
||||||
|
|
||||||
|
//calc offset
|
||||||
|
do {
|
||||||
|
offsetLeft += current.offsetLeft;
|
||||||
|
offsetTop += current.offsetTop;
|
||||||
|
} while (current = current.offsetParent);
|
||||||
|
|
||||||
|
bounds = {
|
||||||
|
maxLeft : offsetLeft,
|
||||||
|
minLeft : -offsetLeft,
|
||||||
|
maxTop : document.documentElement.clientHeight - element.clientHeight - offsetTop,
|
||||||
|
minTop : -offsetTop
|
||||||
|
};
|
||||||
|
moveDelegate = moveElementBounded;
|
||||||
|
}else{
|
||||||
|
bounds = null;
|
||||||
|
moveDelegate = moveElement;
|
||||||
|
}
|
||||||
|
|
||||||
|
// allow custom `onmove` method
|
||||||
|
dispatchEvent('onmove', instance);
|
||||||
|
|
||||||
|
refreshTop = !instance.isModal() && instance.isPinned();
|
||||||
|
movable = instance;
|
||||||
|
moveDelegate(eventSrc, element);
|
||||||
addClass(document.body, classes.noSelection);
|
addClass(document.body, classes.noSelection);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1463,7 +1637,7 @@
|
|||||||
eventSrc = event;
|
eventSrc = event;
|
||||||
}
|
}
|
||||||
if (eventSrc) {
|
if (eventSrc) {
|
||||||
moveElement(eventSrc, movable.elements.dialog);
|
moveDelegate(eventSrc, movable.elements.dialog);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1476,10 +1650,12 @@
|
|||||||
*/
|
*/
|
||||||
function endMove() {
|
function endMove() {
|
||||||
if (movable) {
|
if (movable) {
|
||||||
var element = movable.elements.dialog;
|
var instance = movable;
|
||||||
movable = null;
|
movable = bounds = null;
|
||||||
removeClass(document.body, classes.noSelection);
|
removeClass(document.body, classes.noSelection);
|
||||||
removeClass(element, classes.capture);
|
removeClass(instance.elements.dialog, classes.capture);
|
||||||
|
// allow custom `onmoved` method
|
||||||
|
dispatchEvent('onmoved', instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1619,6 +1795,9 @@
|
|||||||
eventSrc = event;
|
eventSrc = event;
|
||||||
}
|
}
|
||||||
if (eventSrc) {
|
if (eventSrc) {
|
||||||
|
// allow custom `onresize` method
|
||||||
|
dispatchEvent('onresize', instance);
|
||||||
|
|
||||||
resizable = instance;
|
resizable = instance;
|
||||||
handleOffset = instance.elements.resizeHandle.offsetHeight / 2;
|
handleOffset = instance.elements.resizeHandle.offsetHeight / 2;
|
||||||
var element = instance.elements.dialog;
|
var element = instance.elements.dialog;
|
||||||
@ -1668,11 +1847,13 @@
|
|||||||
*/
|
*/
|
||||||
function endResize() {
|
function endResize() {
|
||||||
if (resizable) {
|
if (resizable) {
|
||||||
var element = resizable.elements.dialog;
|
var instance = resizable;
|
||||||
resizable = null;
|
resizable = null;
|
||||||
removeClass(document.body, classes.noSelection);
|
removeClass(document.body, classes.noSelection);
|
||||||
removeClass(element, classes.capture);
|
removeClass(instance.elements.dialog, classes.capture);
|
||||||
cancelClick = true;
|
cancelClick = true;
|
||||||
|
// allow custom `onresized` method
|
||||||
|
dispatchEvent('onresized', instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1981,6 +2162,10 @@
|
|||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
bringToFront:function(){
|
||||||
|
bringToFront(null, this);
|
||||||
|
return this;
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* Move the dialog to a specific x/y coordinates
|
* Move the dialog to a specific x/y coordinates
|
||||||
*
|
*
|
||||||
@ -1991,6 +2176,9 @@
|
|||||||
*/
|
*/
|
||||||
moveTo:function(x,y){
|
moveTo:function(x,y){
|
||||||
if(!isNaN(x) && !isNaN(y)){
|
if(!isNaN(x) && !isNaN(y)){
|
||||||
|
// allow custom `onmove` method
|
||||||
|
dispatchEvent('onmove', this);
|
||||||
|
|
||||||
var element = this.elements.dialog,
|
var element = this.elements.dialog,
|
||||||
current = element,
|
current = element,
|
||||||
offsetLeft = 0,
|
offsetLeft = 0,
|
||||||
@ -2020,6 +2208,9 @@
|
|||||||
|
|
||||||
element.style.left = left + 'px';
|
element.style.left = left + 'px';
|
||||||
element.style.top = top + 'px';
|
element.style.top = top + 'px';
|
||||||
|
|
||||||
|
// allow custom `onmoved` method
|
||||||
|
dispatchEvent('onmoved', this);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
@ -2043,6 +2234,9 @@
|
|||||||
|
|
||||||
if(!isNaN(w) && !isNaN(h) && this.get('resizable') === true){
|
if(!isNaN(w) && !isNaN(h) && this.get('resizable') === true){
|
||||||
|
|
||||||
|
// allow custom `onresize` method
|
||||||
|
dispatchEvent('onresize', this);
|
||||||
|
|
||||||
if(('' + width).match(regex)){
|
if(('' + width).match(regex)){
|
||||||
w = w / 100 * document.documentElement.clientWidth ;
|
w = w / 100 * document.documentElement.clientWidth ;
|
||||||
}
|
}
|
||||||
@ -2059,6 +2253,9 @@
|
|||||||
element.style.minHeight = this.elements.header.offsetHeight + this.elements.footer.offsetHeight + 'px';
|
element.style.minHeight = this.elements.header.offsetHeight + this.elements.footer.offsetHeight + 'px';
|
||||||
element.style.width = w + 'px';
|
element.style.width = w + 'px';
|
||||||
element.style.height = h + 'px';
|
element.style.height = h + 'px';
|
||||||
|
|
||||||
|
// allow custom `onresized` method
|
||||||
|
dispatchEvent('onresized', this);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
@ -2225,9 +2422,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// allow custom `onshow` method
|
// allow custom `onshow` method
|
||||||
if ( typeof this.get('onshow') === 'function' ) {
|
dispatchEvent('onshow', this);
|
||||||
this.get('onshow').call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
// reset move updates
|
// reset move updates
|
||||||
@ -2275,9 +2470,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// allow custom `onclose` method
|
// allow custom `onclose` method
|
||||||
if ( typeof this.get('onclose') === 'function' ) {
|
dispatchEvent('onclose', this);
|
||||||
this.get('onclose').call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
//remove from open dialogs
|
//remove from open dialogs
|
||||||
openDialogs.splice(openDialogs.indexOf(this),1);
|
openDialogs.splice(openDialogs.indexOf(this),1);
|
||||||
@ -2296,7 +2489,25 @@
|
|||||||
closeOthers:function(){
|
closeOthers:function(){
|
||||||
alertify.closeAll(this);
|
alertify.closeAll(this);
|
||||||
return this;
|
return this;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Destroys this dialog instance
|
||||||
|
*
|
||||||
|
* @return {undefined}
|
||||||
|
*/
|
||||||
|
destroy:function(){
|
||||||
|
if (this.__internal.isOpen ) {
|
||||||
|
//mark dialog for destruction, this will be called on tranistionOut event.
|
||||||
|
this.__internal.destroy = function(){
|
||||||
|
destruct(this, initialize);
|
||||||
|
};
|
||||||
|
//close the dialog to unbind all events.
|
||||||
|
this.close();
|
||||||
|
}else{
|
||||||
|
destruct(this, initialize);
|
||||||
}
|
}
|
||||||
|
return this;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
} () );
|
} () );
|
||||||
var notifier = (function () {
|
var notifier = (function () {
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user