diff --git a/app/resources/locales/en_US/default.po b/app/resources/locales/en_US/default.po
index c7b9d55a6..fe117035f 100644
--- a/app/resources/locales/en_US/default.po
+++ b/app/resources/locales/en_US/default.po
@@ -26,6 +26,9 @@
msgid "product.code"
msgstr "registry"
+msgid "product.comanage"
+msgstr "COmanage"
+
# This should match the ISO 639-1 two letter language code for the translation
msgid "registry.meta.lang"
msgstr "en"
diff --git a/app/resources/locales/en_US/information.po b/app/resources/locales/en_US/information.po
index 94f4ffd9b..835cddf26 100644
--- a/app/resources/locales/en_US/information.po
+++ b/app/resources/locales/en_US/information.po
@@ -36,6 +36,15 @@ msgstr "No collaborations (COs) yet exist. Please have an administrator create o
msgid "cos.select"
msgstr "Please select the collaboration (CO) you wish to manage."
+msgid "flash.default"
+msgstr "Notice"
+
+msgid "flash.error"
+msgstr "Error"
+
+msgid "flash.success"
+msgstr "Success"
+
msgid "pagination.format"
msgstr "Page {{page}} of {{pages}}, Viewing {{start}}-{{end}} of {{count}}"
diff --git a/app/templates/element/flash/default.php b/app/templates/element/flash/default.php
index 62c060cab..c4e4a2f4b 100644
--- a/app/templates/element/flash/default.php
+++ b/app/templates/element/flash/default.php
@@ -11,13 +11,26 @@
= $message ?>
*/ ?>
-', $filteredMessage);
- print "";
- }
-?>
+
+
+
+
+
+ = h($message); ?>
+
+
+
+
+
diff --git a/app/templates/element/flash/error.php b/app/templates/element/flash/error.php
index 9f66439e6..1d047dd32 100644
--- a/app/templates/element/flash/error.php
+++ b/app/templates/element/flash/error.php
@@ -7,14 +7,24 @@
= $message ?>
*/ ?>
+
+
+
+
+ = h($message); ?>
+
+
-', $filteredMessage);
- print "";
- }
-?>
-
+
+
diff --git a/app/templates/element/flash/success.php b/app/templates/element/flash/success.php
index a82225c56..b021443f1 100644
--- a/app/templates/element/flash/success.php
+++ b/app/templates/element/flash/success.php
@@ -7,12 +7,24 @@
= $message ?>
*/ ?>
-', $filteredMessage);
- print "";
- }
-?>
+
+
+
+
+ = h($message); ?>
+
+
+
+
+
\ No newline at end of file
diff --git a/app/templates/element/javascript.php b/app/templates/element/javascript.php
index f75048ac7..88f34443a 100644
--- a/app/templates/element/javascript.php
+++ b/app/templates/element/javascript.php
@@ -230,6 +230,4 @@
var defaultConfirmCancel = "";
var defaultConfirmTitle = "";
-
-
-= $this->Flash->render() ?>
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/templates/layout/default.php b/app/templates/layout/default.php
index 356bd917b..f5fbea63c 100644
--- a/app/templates/layout/default.php
+++ b/app/templates/layout/default.php
@@ -40,7 +40,7 @@
- = $this->Html->meta('viewport', 'width=device-width, initial-scale=1.0') . "\n"; ?>
+ = $this->Html->meta('viewport', 'width=device-width, initial-scale=1, shrink-to-fit=no') . "\n"; ?>
= $this->Html->charset(); ?>
= (!empty($vv_title) ? $vv_title : __('registry.meta.registry')); ?>
@@ -63,8 +63,9 @@
'co-responsive'
]) . "\n"; ?>
-
+
= $this->Html->script([
+ 'bootstrap/bootstrap.bundle.min.js',
'jquery/jquery.min.js'
]) . "\n"; ?>
@@ -176,6 +177,15 @@
+
+
+
+ = $this->Flash->render() ?>
+
= $this->element('dialog'); ?>
@@ -191,13 +201,9 @@
-
+
= $this->Html->script([
- 'bootstrap/bootstrap.bundle.min.js',
'js-cookie/js.cookie-2.1.3.min.js',
- 'jquery/noty/jquery.noty.js',
- 'jquery/noty/layouts/topCenter.js',
- 'jquery/noty/themes/comanage.js',
'comanage.js'
]) . "\n"; ?>
diff --git a/app/webroot/css/co-base.css b/app/webroot/css/co-base.css
index 8a90af79a..b62401762 100644
--- a/app/webroot/css/co-base.css
+++ b/app/webroot/css/co-base.css
@@ -319,11 +319,31 @@ instead, reveal in user menu */
padding: 1em 0;
}
/* NOTICES */
-.noty_text {
- letter-spacing: 0.3px;
- font-size: 14px;
+#flash-messages {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ margin: 1em auto;
+ z-index: 100;
+}
+#flash-messages .toast-header img {
+ width: 20px;
+ margin-right: 0.3em;
+}
+#flash-messages .toast.success .toast-header {
+ background-color: var(--cmg-color-green-007);
+ color: white;
+}
+#flash-messages .toast.error .toast-header {
+ background-color: var(--cmg-color-red-002);
+ color: white;
+}
+#flash-messages .toast.default .toast-header {
+ background-color: var(--cmg-color-yellow-001);
+ color: black;
}
-.noty_text .material-icons {
+#flash-messages .material-icons {
font-size: 20px !important;
padding: 0;
margin: 0 4px 0 -10px;
diff --git a/app/webroot/img/COmanage-Gears-SM.png b/app/webroot/img/COmanage-Gears-SM.png
new file mode 100644
index 000000000..320fcfbce
Binary files /dev/null and b/app/webroot/img/COmanage-Gears-SM.png differ
diff --git a/app/webroot/js/comanage.js b/app/webroot/js/comanage.js
index dca2183b4..86dfb5cf5 100644
--- a/app/webroot/js/comanage.js
+++ b/app/webroot/js/comanage.js
@@ -40,17 +40,6 @@ function js_onsubmit_call_hooks() {
}
}
-// Generate flash notifications for messages
-function generateFlash(text, type) {
- var n = noty({
- text: text,
- type: type,
- dismissQueue: true,
- layout: 'topCenter',
- theme: 'comanage'
- });
-}
-
// Generate a loading animation by revealing a persistent hidden div with CSS animation.
// An element's onclick action will trigger this to appear if it has the class "spin" class on an element.
// (See Template/Elements/javascript.ctp)
diff --git a/app/webroot/js/jquery/noty/LICENSE.txt b/app/webroot/js/jquery/noty/LICENSE.txt
deleted file mode 100755
index 686993990..000000000
--- a/app/webroot/js/jquery/noty/LICENSE.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright (c) 2012 Nedim Arabacı
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/jquery.noty.js b/app/webroot/js/jquery/noty/jquery.noty.js
deleted file mode 100644
index 23877779d..000000000
--- a/app/webroot/js/jquery/noty/jquery.noty.js
+++ /dev/null
@@ -1,545 +0,0 @@
-/*!
- @package noty - jQuery Notification Plugin
- @version version: 2.3.7
- @contributors https://github.com/needim/noty/graphs/contributors
-
- @documentation Examples and Documentation - http://needim.github.com/noty/
-
- @license Licensed under the MIT licenses: http://www.opensource.org/licenses/mit-license.php
- */
-
- if(typeof Object.create !== 'function') {
- Object.create = function(o) {
- function F() {
- }
-
- F.prototype = o;
- return new F();
- };
- }
-
- var NotyObject = {
-
- init: function(options) {
-
- // Mix in the passed in options with the default options
- this.options = $.extend({}, $.noty.defaults, options);
-
- this.options.layout = (this.options.custom) ? $.noty.layouts['inline'] : $.noty.layouts[this.options.layout];
-
- if($.noty.themes[this.options.theme])
- this.options.theme = $.noty.themes[this.options.theme];
- else
- options.themeClassName = this.options.theme;
-
- delete options.layout;
- delete options.theme;
-
- this.options = $.extend({}, this.options, this.options.layout.options);
- this.options.id = 'noty_' + (new Date().getTime() * Math.floor(Math.random() * 1000000));
-
- this.options = $.extend({}, this.options, options);
-
- // Build the noty dom initial structure
- this._build();
-
- // return this so we can chain/use the bridge with less code.
- return this;
- }, // end init
-
- _build: function() {
-
- // Generating noty bar
- var $bar = $('').attr('id', this.options.id);
- $bar.append(this.options.template).find('.noty_text').html(this.options.text);
-
- this.$bar = (this.options.layout.parent.object !== null) ? $(this.options.layout.parent.object).css(this.options.layout.parent.css).append($bar) : $bar;
-
- if(this.options.themeClassName)
- this.$bar.addClass(this.options.themeClassName).addClass('noty_container_type_' + this.options.type);
-
- // Set buttons if available
- if(this.options.buttons) {
-
- // If we have button disable closeWith & timeout options
- this.options.closeWith = [];
- this.options.timeout = false;
-
- var $buttons = $('').addClass('noty_buttons');
-
- (this.options.layout.parent.object !== null) ? this.$bar.find('.noty_bar').append($buttons) : this.$bar.append($buttons);
-
- var self = this;
-
- $.each(this.options.buttons, function(i, button) {
- var $button = $('').addClass((button.addClass) ? button.addClass : 'gray').html(button.text).attr('id', button.id ? button.id : 'button-' + i)
- .attr('title', button.title)
- .appendTo(self.$bar.find('.noty_buttons'))
- .on('click', function(event) {
- if($.isFunction(button.onClick)) {
- button.onClick.call($button, self, event);
- }
- });
- });
- }
-
- // For easy access
- this.$message = this.$bar.find('.noty_message');
- this.$closeButton = this.$bar.find('.noty_close');
- this.$buttons = this.$bar.find('.noty_buttons');
-
- $.noty.store[this.options.id] = this; // store noty for api
-
- }, // end _build
-
- show: function() {
-
- var self = this;
-
- (self.options.custom) ? self.options.custom.find(self.options.layout.container.selector).append(self.$bar) : $(self.options.layout.container.selector).append(self.$bar);
-
- if(self.options.theme && self.options.theme.style)
- self.options.theme.style.apply(self);
-
- ($.type(self.options.layout.css) === 'function') ? this.options.layout.css.apply(self.$bar) : self.$bar.css(this.options.layout.css || {});
-
- self.$bar.addClass(self.options.layout.addClass);
-
- self.options.layout.container.style.apply($(self.options.layout.container.selector), [self.options.within]);
-
- self.showing = true;
-
- if(self.options.theme && self.options.theme.style)
- self.options.theme.callback.onShow.apply(this);
-
- if($.inArray('click', self.options.closeWith) > -1)
- self.$bar.css('cursor', 'pointer').one('click', function(evt) {
- self.stopPropagation(evt);
- if(self.options.callback.onCloseClick) {
- self.options.callback.onCloseClick.apply(self);
- }
- self.close();
- });
-
- if($.inArray('hover', self.options.closeWith) > -1)
- self.$bar.one('mouseenter', function() {
- self.close();
- });
-
- if($.inArray('button', self.options.closeWith) > -1)
- self.$closeButton.one('click', function(evt) {
- self.stopPropagation(evt);
- self.close();
- });
-
- if($.inArray('button', self.options.closeWith) == -1)
- self.$closeButton.remove();
-
- if(self.options.callback.onShow)
- self.options.callback.onShow.apply(self);
-
- if (typeof self.options.animation.open == 'string') {
- self.$bar.css('height', self.$bar.innerHeight());
- self.$bar.on('click',function(e){
- self.wasClicked = true;
- });
- self.$bar.show().addClass(self.options.animation.open).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
- if(self.options.callback.afterShow) self.options.callback.afterShow.apply(self);
- self.showing = false;
- self.shown = true;
- if(self.hasOwnProperty('wasClicked')){
- self.$bar.off('click',function(e){
- self.wasClicked = true;
- });
- self.close();
- }
- });
-
- } else {
- self.$bar.animate(
- self.options.animation.open,
- self.options.animation.speed,
- self.options.animation.easing,
- function() {
- if(self.options.callback.afterShow) self.options.callback.afterShow.apply(self);
- self.showing = false;
- self.shown = true;
- });
- }
-
- // If noty is have a timeout option
- if(self.options.timeout)
- self.$bar.delay(self.options.timeout).promise().done(function() {
- self.close();
- });
-
- return this;
-
- }, // end show
-
- close: function() {
-
- if(this.closed) return;
- if(this.$bar && this.$bar.hasClass('i-am-closing-now')) return;
-
- var self = this;
-
- if(this.showing) {
- self.$bar.queue(
- function() {
- self.close.apply(self);
- }
- );
- return;
- }
-
- if(!this.shown && !this.showing) { // If we are still waiting in the queue just delete from queue
- var queue = [];
- $.each($.noty.queue, function(i, n) {
- if(n.options.id != self.options.id) {
- queue.push(n);
- }
- });
- $.noty.queue = queue;
- return;
- }
-
- self.$bar.addClass('i-am-closing-now');
-
- if(self.options.callback.onClose) {
- self.options.callback.onClose.apply(self);
- }
-
- if (typeof self.options.animation.close == 'string') {
- self.$bar.addClass(self.options.animation.close).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
- if(self.options.callback.afterClose) self.options.callback.afterClose.apply(self);
- self.closeCleanUp();
- });
- } else {
- self.$bar.clearQueue().stop().animate(
- self.options.animation.close,
- self.options.animation.speed,
- self.options.animation.easing,
- function() {
- if(self.options.callback.afterClose) self.options.callback.afterClose.apply(self);
- })
- .promise().done(function() {
- self.closeCleanUp();
- });
- }
-
- }, // end close
-
- closeCleanUp: function() {
-
- var self = this;
-
- // Modal Cleaning
- if(self.options.modal) {
- $.notyRenderer.setModalCount(-1);
- if($.notyRenderer.getModalCount() == 0) $('.noty_modal').fadeOut(self.options.animation.fadeSpeed, function() {
- $(this).remove();
- });
- }
-
- // Layout Cleaning
- $.notyRenderer.setLayoutCountFor(self, -1);
- if($.notyRenderer.getLayoutCountFor(self) == 0) $(self.options.layout.container.selector).remove();
-
- // Make sure self.$bar has not been removed before attempting to remove it
- if(typeof self.$bar !== 'undefined' && self.$bar !== null) {
-
- if (typeof self.options.animation.close == 'string') {
- self.$bar.css('transition', 'all 100ms ease').css('border', 0).css('margin', 0).height(0);
- self.$bar.one('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function() {
- self.$bar.remove();
- self.$bar = null;
- self.closed = true;
-
- if(self.options.theme.callback && self.options.theme.callback.onClose) {
- self.options.theme.callback.onClose.apply(self);
- }
- });
- } else {
- self.$bar.remove();
- self.$bar = null;
- self.closed = true;
- }
- }
-
- delete $.noty.store[self.options.id]; // deleting noty from store
-
- if(self.options.theme.callback && self.options.theme.callback.onClose) {
- self.options.theme.callback.onClose.apply(self);
- }
-
- if(!self.options.dismissQueue) {
- // Queue render
- $.noty.ontap = true;
-
- $.notyRenderer.render();
- }
-
- if(self.options.maxVisible > 0 && self.options.dismissQueue) {
- $.notyRenderer.render();
- }
-
- }, // end close clean up
-
- setText: function(text) {
- if(!this.closed) {
- this.options.text = text;
- this.$bar.find('.noty_text').html(text);
- }
- return this;
- },
-
- setType: function(type) {
- if(!this.closed) {
- this.options.type = type;
- this.options.theme.style.apply(this);
- this.options.theme.callback.onShow.apply(this);
- }
- return this;
- },
-
- setTimeout: function(time) {
- if(!this.closed) {
- var self = this;
- this.options.timeout = time;
- self.$bar.delay(self.options.timeout).promise().done(function() {
- self.close();
- });
- }
- return this;
- },
-
- stopPropagation: function(evt) {
- evt = evt || window.event;
- if(typeof evt.stopPropagation !== "undefined") {
- evt.stopPropagation();
- }
- else {
- evt.cancelBubble = true;
- }
- },
-
- closed : false,
- showing: false,
- shown : false
-
- }; // end NotyObject
-
- $.notyRenderer = {};
-
- $.notyRenderer.init = function(options) {
-
- // Renderer creates a new noty
- var notification = Object.create(NotyObject).init(options);
-
- if(notification.options.killer)
- $.noty.closeAll();
-
- (notification.options.force) ? $.noty.queue.unshift(notification) : $.noty.queue.push(notification);
-
- $.notyRenderer.render();
-
- return ($.noty.returns == 'object') ? notification : notification.options.id;
- };
-
- $.notyRenderer.render = function() {
-
- var instance = $.noty.queue[0];
-
- if($.type(instance) === 'object') {
- if(instance.options.dismissQueue) {
- if(instance.options.maxVisible > 0) {
- if($(instance.options.layout.container.selector + ' > li').length < instance.options.maxVisible) {
- $.notyRenderer.show($.noty.queue.shift());
- }
- else {
-
- }
- }
- else {
- $.notyRenderer.show($.noty.queue.shift());
- }
- }
- else {
- if($.noty.ontap) {
- $.notyRenderer.show($.noty.queue.shift());
- $.noty.ontap = false;
- }
- }
- }
- else {
- $.noty.ontap = true; // Queue is over
- }
-
- };
-
- $.notyRenderer.show = function(notification) {
-
- if(notification.options.modal) {
- $.notyRenderer.createModalFor(notification);
- $.notyRenderer.setModalCount(+1);
- }
-
- // Where is the container?
- if(notification.options.custom) {
- if(notification.options.custom.find(notification.options.layout.container.selector).length == 0) {
- notification.options.custom.append($(notification.options.layout.container.object).addClass('i-am-new'));
- }
- else {
- notification.options.custom.find(notification.options.layout.container.selector).removeClass('i-am-new');
- }
- }
- else {
- if($(notification.options.layout.container.selector).length == 0) {
- $('body').append($(notification.options.layout.container.object).addClass('i-am-new'));
- }
- else {
- $(notification.options.layout.container.selector).removeClass('i-am-new');
- }
- }
-
- $.notyRenderer.setLayoutCountFor(notification, +1);
-
- notification.show();
- };
-
- $.notyRenderer.createModalFor = function(notification) {
- if($('.noty_modal').length == 0) {
- var modal = $('').addClass('noty_modal').addClass(notification.options.theme).data('noty_modal_count', 0);
-
- if(notification.options.theme.modal && notification.options.theme.modal.css)
- modal.css(notification.options.theme.modal.css);
-
- modal.prependTo($('body')).fadeIn(notification.options.animation.fadeSpeed);
-
- if($.inArray('backdrop', notification.options.closeWith) > -1)
- modal.on('click', function(e) {
- $.noty.closeAll();
- });
- }
- };
-
- $.notyRenderer.getLayoutCountFor = function(notification) {
- return $(notification.options.layout.container.selector).data('noty_layout_count') || 0;
- };
-
- $.notyRenderer.setLayoutCountFor = function(notification, arg) {
- return $(notification.options.layout.container.selector).data('noty_layout_count', $.notyRenderer.getLayoutCountFor(notification) + arg);
- };
-
- $.notyRenderer.getModalCount = function() {
- return $('.noty_modal').data('noty_modal_count') || 0;
- };
-
- $.notyRenderer.setModalCount = function(arg) {
- return $('.noty_modal').data('noty_modal_count', $.notyRenderer.getModalCount() + arg);
- };
-
- // This is for custom container
- $.fn.noty = function(options) {
- options.custom = $(this);
- return $.notyRenderer.init(options);
- };
-
- $.noty = {};
- $.noty.queue = [];
- $.noty.ontap = true;
- $.noty.layouts = {};
- $.noty.themes = {};
- $.noty.returns = 'object';
- $.noty.store = {};
-
- $.noty.get = function(id) {
- return $.noty.store.hasOwnProperty(id) ? $.noty.store[id] : false;
- };
-
- $.noty.close = function(id) {
- return $.noty.get(id) ? $.noty.get(id).close() : false;
- };
-
- $.noty.setText = function(id, text) {
- return $.noty.get(id) ? $.noty.get(id).setText(text) : false;
- };
-
- $.noty.setType = function(id, type) {
- return $.noty.get(id) ? $.noty.get(id).setType(type) : false;
- };
-
- $.noty.clearQueue = function() {
- $.noty.queue = [];
- };
-
- $.noty.closeAll = function() {
- $.noty.clearQueue();
- $.each($.noty.store, function(id, noty) {
- noty.close();
- });
- };
-
- var windowAlert = window.alert;
-
- $.noty.consumeAlert = function(options) {
- window.alert = function(text) {
- if(options)
- options.text = text;
- else
- options = {text: text};
-
- $.notyRenderer.init(options);
- };
- };
-
- $.noty.stopConsumeAlert = function() {
- window.alert = windowAlert;
- };
-
- $.noty.defaults = {
- layout : 'top',
- theme : 'defaultTheme',
- type : 'alert',
- text : '',
- dismissQueue: true,
- template : '',
- animation : {
- open : {height: 'toggle'},
- close : {height: 'toggle'},
- easing: 'swing',
- speed : 500,
- fadeSpeed: 'fast',
- },
- timeout : false,
- force : false,
- modal : false,
- maxVisible : 5,
- killer : false,
- closeWith : ['click'],
- callback : {
- onShow : function() {
- },
- afterShow : function() {
- },
- onClose : function() {
- },
- afterClose : function() {
- },
- onCloseClick: function() {
- }
- },
- buttons : false
- };
-
- $(window).on('resize', function() {
- $.each($.noty.layouts, function(index, layout) {
- layout.container.style.apply($(layout.container.selector));
- });
- });
-
- // Helpers
- window.noty = function noty(options) {
- return $.notyRenderer.init(options);
- };
diff --git a/app/webroot/js/jquery/noty/layouts/bottom.js b/app/webroot/js/jquery/noty/layouts/bottom.js
deleted file mode 100644
index 00ec9dd93..000000000
--- a/app/webroot/js/jquery/noty/layouts/bottom.js
+++ /dev/null
@@ -1,30 +0,0 @@
-$.noty.layouts.bottom = {
- name : 'bottom',
- options : {},
- container: {
- object : '',
- selector: 'ul#noty_bottom_layout_container',
- style : function() {
- $(this).css({
- bottom : 0,
- left : '5%',
- position : 'fixed',
- width : '90%',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 9999999
- });
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none'
- },
- addClass : ''
-};
diff --git a/app/webroot/js/jquery/noty/layouts/bottomCenter.js b/app/webroot/js/jquery/noty/layouts/bottomCenter.js
deleted file mode 100644
index be2551748..000000000
--- a/app/webroot/js/jquery/noty/layouts/bottomCenter.js
+++ /dev/null
@@ -1,38 +0,0 @@
-$.noty.layouts.bottomCenter = {
- name : 'bottomCenter',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_bottomCenter_layout_container',
- style : function() {
- $(this).css({
- bottom : 20,
- left : 0,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- $(this).css({
- left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px'
- });
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
-
diff --git a/app/webroot/js/jquery/noty/layouts/bottomLeft.js b/app/webroot/js/jquery/noty/layouts/bottomLeft.js
deleted file mode 100644
index 15b65043a..000000000
--- a/app/webroot/js/jquery/noty/layouts/bottomLeft.js
+++ /dev/null
@@ -1,39 +0,0 @@
-$.noty.layouts.bottomLeft = {
- name : 'bottomLeft',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_bottomLeft_layout_container',
- style : function() {
- $(this).css({
- bottom : 20,
- left : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- if(window.innerWidth < 600) {
- $(this).css({
- left: 5
- });
- }
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/layouts/bottomRight.js b/app/webroot/js/jquery/noty/layouts/bottomRight.js
deleted file mode 100644
index acd376509..000000000
--- a/app/webroot/js/jquery/noty/layouts/bottomRight.js
+++ /dev/null
@@ -1,39 +0,0 @@
-$.noty.layouts.bottomRight = {
- name : 'bottomRight',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_bottomRight_layout_container',
- style : function() {
- $(this).css({
- bottom : 20,
- right : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- if(window.innerWidth < 600) {
- $(this).css({
- right: 5
- });
- }
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/layouts/center.js b/app/webroot/js/jquery/noty/layouts/center.js
deleted file mode 100644
index 97e1bcf87..000000000
--- a/app/webroot/js/jquery/noty/layouts/center.js
+++ /dev/null
@@ -1,53 +0,0 @@
-$.noty.layouts.center = {
- name : 'center',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_center_layout_container',
- style : function() {
- $(this).css({
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- // getting hidden height
- var dupe = $(this).clone().css({visibility: "hidden", display: "block", position: "absolute", top: 0, left: 0}).attr('id', 'dupe');
- $("body").append(dupe);
- dupe.find('.i-am-closing-now').remove();
- dupe.find('li').css('display', 'block');
- var actual_height = dupe.height();
- dupe.remove();
-
- if($(this).hasClass('i-am-new')) {
- $(this).css({
- left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px',
- top : ($(window).height() - actual_height) / 2 + 'px'
- });
- }
- else {
- $(this).animate({
- left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px',
- top : ($(window).height() - actual_height) / 2 + 'px'
- }, 500);
- }
-
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/layouts/centerLeft.js b/app/webroot/js/jquery/noty/layouts/centerLeft.js
deleted file mode 100644
index 5853a6b1d..000000000
--- a/app/webroot/js/jquery/noty/layouts/centerLeft.js
+++ /dev/null
@@ -1,58 +0,0 @@
-$.noty.layouts.centerLeft = {
- name : 'centerLeft',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_centerLeft_layout_container',
- style : function() {
- $(this).css({
- left : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- // getting hidden height
- var dupe = $(this).clone().css({visibility: "hidden", display: "block", position: "absolute", top: 0, left: 0}).attr('id', 'dupe');
- $("body").append(dupe);
- dupe.find('.i-am-closing-now').remove();
- dupe.find('li').css('display', 'block');
- var actual_height = dupe.height();
- dupe.remove();
-
- if($(this).hasClass('i-am-new')) {
- $(this).css({
- top: ($(window).height() - actual_height) / 2 + 'px'
- });
- }
- else {
- $(this).animate({
- top: ($(window).height() - actual_height) / 2 + 'px'
- }, 500);
- }
-
- if(window.innerWidth < 600) {
- $(this).css({
- left: 5
- });
- }
-
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
diff --git a/app/webroot/js/jquery/noty/layouts/centerRight.js b/app/webroot/js/jquery/noty/layouts/centerRight.js
deleted file mode 100644
index 89b92ca6f..000000000
--- a/app/webroot/js/jquery/noty/layouts/centerRight.js
+++ /dev/null
@@ -1,58 +0,0 @@
-$.noty.layouts.centerRight = {
- name : 'centerRight',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_centerRight_layout_container',
- style : function() {
- $(this).css({
- right : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- // getting hidden height
- var dupe = $(this).clone().css({visibility: "hidden", display: "block", position: "absolute", top: 0, left: 0}).attr('id', 'dupe');
- $("body").append(dupe);
- dupe.find('.i-am-closing-now').remove();
- dupe.find('li').css('display', 'block');
- var actual_height = dupe.height();
- dupe.remove();
-
- if($(this).hasClass('i-am-new')) {
- $(this).css({
- top: ($(window).height() - actual_height) / 2 + 'px'
- });
- }
- else {
- $(this).animate({
- top: ($(window).height() - actual_height) / 2 + 'px'
- }, 500);
- }
-
- if(window.innerWidth < 600) {
- $(this).css({
- right: 5
- });
- }
-
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/layouts/inline.js b/app/webroot/js/jquery/noty/layouts/inline.js
deleted file mode 100644
index 6acea18a9..000000000
--- a/app/webroot/js/jquery/noty/layouts/inline.js
+++ /dev/null
@@ -1,27 +0,0 @@
-$.noty.layouts.inline = {
- name : 'inline',
- options : {},
- container: {
- object : '',
- selector: 'ul.noty_inline_layout_container',
- style : function() {
- $(this).css({
- width : '100%',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 9999999
- });
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none'
- },
- addClass : ''
-};
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/layouts/top.js b/app/webroot/js/jquery/noty/layouts/top.js
deleted file mode 100644
index dead25486..000000000
--- a/app/webroot/js/jquery/noty/layouts/top.js
+++ /dev/null
@@ -1,30 +0,0 @@
-$.noty.layouts.top = {
- name : 'top',
- options : {},
- container: {
- object : '',
- selector: 'ul#noty_top_layout_container',
- style : function() {
- $(this).css({
- top : 0,
- left : '5%',
- position : 'fixed',
- width : '90%',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 9999999
- });
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none'
- },
- addClass : ''
-};
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/layouts/topCenter.js b/app/webroot/js/jquery/noty/layouts/topCenter.js
deleted file mode 100644
index f88d8e1e7..000000000
--- a/app/webroot/js/jquery/noty/layouts/topCenter.js
+++ /dev/null
@@ -1,37 +0,0 @@
-$.noty.layouts.topCenter = {
- name : 'topCenter',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_topCenter_layout_container',
- style : function() {
- $(this).css({
- top : 20,
- left : 0,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- $(this).css({
- left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px'
- });
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
diff --git a/app/webroot/js/jquery/noty/layouts/topLeft.js b/app/webroot/js/jquery/noty/layouts/topLeft.js
deleted file mode 100644
index 39289ad49..000000000
--- a/app/webroot/js/jquery/noty/layouts/topLeft.js
+++ /dev/null
@@ -1,39 +0,0 @@
-$.noty.layouts.topLeft = {
- name : 'topLeft',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_topLeft_layout_container',
- style : function() {
- $(this).css({
- top : 20,
- left : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- if(window.innerWidth < 600) {
- $(this).css({
- left: 5
- });
- }
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/layouts/topRight.js b/app/webroot/js/jquery/noty/layouts/topRight.js
deleted file mode 100644
index be637ec04..000000000
--- a/app/webroot/js/jquery/noty/layouts/topRight.js
+++ /dev/null
@@ -1,39 +0,0 @@
-$.noty.layouts.topRight = {
- name : 'topRight',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_topRight_layout_container',
- style : function() {
- $(this).css({
- top : 20,
- right : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- if(window.innerWidth < 600) {
- $(this).css({
- right: 5
- });
- }
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/packaged/jquery.noty.packaged.js b/app/webroot/js/jquery/noty/packaged/jquery.noty.packaged.js
deleted file mode 100644
index c7ee00b2c..000000000
--- a/app/webroot/js/jquery/noty/packaged/jquery.noty.packaged.js
+++ /dev/null
@@ -1,1447 +0,0 @@
-!function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['jquery'], factory);
- } else if (typeof exports === 'object') {
- module.exports = factory(require('jquery'));
- } else {
- factory(root.jQuery);
- }
-}(this, function($) {
-
-/*!
- @package noty - jQuery Notification Plugin
- @version version: 2.3.7
- @contributors https://github.com/needim/noty/graphs/contributors
-
- @documentation Examples and Documentation - http://needim.github.com/noty/
-
- @license Licensed under the MIT licenses: http://www.opensource.org/licenses/mit-license.php
- */
-
- if(typeof Object.create !== 'function') {
- Object.create = function(o) {
- function F() {
- }
-
- F.prototype = o;
- return new F();
- };
- }
-
- var NotyObject = {
-
- init: function(options) {
-
- // Mix in the passed in options with the default options
- this.options = $.extend({}, $.noty.defaults, options);
-
- this.options.layout = (this.options.custom) ? $.noty.layouts['inline'] : $.noty.layouts[this.options.layout];
-
- if($.noty.themes[this.options.theme])
- this.options.theme = $.noty.themes[this.options.theme];
- else
- options.themeClassName = this.options.theme;
-
- delete options.layout;
- delete options.theme;
-
- this.options = $.extend({}, this.options, this.options.layout.options);
- this.options.id = 'noty_' + (new Date().getTime() * Math.floor(Math.random() * 1000000));
-
- this.options = $.extend({}, this.options, options);
-
- // Build the noty dom initial structure
- this._build();
-
- // return this so we can chain/use the bridge with less code.
- return this;
- }, // end init
-
- _build: function() {
-
- // Generating noty bar
- var $bar = $('').attr('id', this.options.id);
- $bar.append(this.options.template).find('.noty_text').html(this.options.text);
-
- this.$bar = (this.options.layout.parent.object !== null) ? $(this.options.layout.parent.object).css(this.options.layout.parent.css).append($bar) : $bar;
-
- if(this.options.themeClassName)
- this.$bar.addClass(this.options.themeClassName).addClass('noty_container_type_' + this.options.type);
-
- // Set buttons if available
- if(this.options.buttons) {
-
- // If we have button disable closeWith & timeout options
- this.options.closeWith = [];
- this.options.timeout = false;
-
- var $buttons = $('').addClass('noty_buttons');
-
- (this.options.layout.parent.object !== null) ? this.$bar.find('.noty_bar').append($buttons) : this.$bar.append($buttons);
-
- var self = this;
-
- $.each(this.options.buttons, function(i, button) {
- var $button = $('').addClass((button.addClass) ? button.addClass : 'gray').html(button.text).attr('id', button.id ? button.id : 'button-' + i)
- .attr('title', button.title)
- .appendTo(self.$bar.find('.noty_buttons'))
- .on('click', function(event) {
- if($.isFunction(button.onClick)) {
- button.onClick.call($button, self, event);
- }
- });
- });
- }
-
- // For easy access
- this.$message = this.$bar.find('.noty_message');
- this.$closeButton = this.$bar.find('.noty_close');
- this.$buttons = this.$bar.find('.noty_buttons');
-
- $.noty.store[this.options.id] = this; // store noty for api
-
- }, // end _build
-
- show: function() {
-
- var self = this;
-
- (self.options.custom) ? self.options.custom.find(self.options.layout.container.selector).append(self.$bar) : $(self.options.layout.container.selector).append(self.$bar);
-
- if(self.options.theme && self.options.theme.style)
- self.options.theme.style.apply(self);
-
- ($.type(self.options.layout.css) === 'function') ? this.options.layout.css.apply(self.$bar) : self.$bar.css(this.options.layout.css || {});
-
- self.$bar.addClass(self.options.layout.addClass);
-
- self.options.layout.container.style.apply($(self.options.layout.container.selector), [self.options.within]);
-
- self.showing = true;
-
- if(self.options.theme && self.options.theme.style)
- self.options.theme.callback.onShow.apply(this);
-
- if($.inArray('click', self.options.closeWith) > -1)
- self.$bar.css('cursor', 'pointer').one('click', function(evt) {
- self.stopPropagation(evt);
- if(self.options.callback.onCloseClick) {
- self.options.callback.onCloseClick.apply(self);
- }
- self.close();
- });
-
- if($.inArray('hover', self.options.closeWith) > -1)
- self.$bar.one('mouseenter', function() {
- self.close();
- });
-
- if($.inArray('button', self.options.closeWith) > -1)
- self.$closeButton.one('click', function(evt) {
- self.stopPropagation(evt);
- self.close();
- });
-
- if($.inArray('button', self.options.closeWith) == -1)
- self.$closeButton.remove();
-
- if(self.options.callback.onShow)
- self.options.callback.onShow.apply(self);
-
- if (typeof self.options.animation.open == 'string') {
- self.$bar.css('height', self.$bar.innerHeight());
- self.$bar.on('click',function(e){
- self.wasClicked = true;
- });
- self.$bar.show().addClass(self.options.animation.open).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
- if(self.options.callback.afterShow) self.options.callback.afterShow.apply(self);
- self.showing = false;
- self.shown = true;
- if(self.hasOwnProperty('wasClicked')){
- self.$bar.off('click',function(e){
- self.wasClicked = true;
- });
- self.close();
- }
- });
-
- } else {
- self.$bar.animate(
- self.options.animation.open,
- self.options.animation.speed,
- self.options.animation.easing,
- function() {
- if(self.options.callback.afterShow) self.options.callback.afterShow.apply(self);
- self.showing = false;
- self.shown = true;
- });
- }
-
- // If noty is have a timeout option
- if(self.options.timeout)
- self.$bar.delay(self.options.timeout).promise().done(function() {
- self.close();
- });
-
- return this;
-
- }, // end show
-
- close: function() {
-
- if(this.closed) return;
- if(this.$bar && this.$bar.hasClass('i-am-closing-now')) return;
-
- var self = this;
-
- if(this.showing) {
- self.$bar.queue(
- function() {
- self.close.apply(self);
- }
- );
- return;
- }
-
- if(!this.shown && !this.showing) { // If we are still waiting in the queue just delete from queue
- var queue = [];
- $.each($.noty.queue, function(i, n) {
- if(n.options.id != self.options.id) {
- queue.push(n);
- }
- });
- $.noty.queue = queue;
- return;
- }
-
- self.$bar.addClass('i-am-closing-now');
-
- if(self.options.callback.onClose) {
- self.options.callback.onClose.apply(self);
- }
-
- if (typeof self.options.animation.close == 'string') {
- self.$bar.addClass(self.options.animation.close).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
- if(self.options.callback.afterClose) self.options.callback.afterClose.apply(self);
- self.closeCleanUp();
- });
- } else {
- self.$bar.clearQueue().stop().animate(
- self.options.animation.close,
- self.options.animation.speed,
- self.options.animation.easing,
- function() {
- if(self.options.callback.afterClose) self.options.callback.afterClose.apply(self);
- })
- .promise().done(function() {
- self.closeCleanUp();
- });
- }
-
- }, // end close
-
- closeCleanUp: function() {
-
- var self = this;
-
- // Modal Cleaning
- if(self.options.modal) {
- $.notyRenderer.setModalCount(-1);
- if($.notyRenderer.getModalCount() == 0) $('.noty_modal').fadeOut(self.options.animation.fadeSpeed, function() {
- $(this).remove();
- });
- }
-
- // Layout Cleaning
- $.notyRenderer.setLayoutCountFor(self, -1);
- if($.notyRenderer.getLayoutCountFor(self) == 0) $(self.options.layout.container.selector).remove();
-
- // Make sure self.$bar has not been removed before attempting to remove it
- if(typeof self.$bar !== 'undefined' && self.$bar !== null) {
-
- if (typeof self.options.animation.close == 'string') {
- self.$bar.css('transition', 'all 100ms ease').css('border', 0).css('margin', 0).height(0);
- self.$bar.one('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function() {
- self.$bar.remove();
- self.$bar = null;
- self.closed = true;
-
- if(self.options.theme.callback && self.options.theme.callback.onClose) {
- self.options.theme.callback.onClose.apply(self);
- }
- });
- } else {
- self.$bar.remove();
- self.$bar = null;
- self.closed = true;
- }
- }
-
- delete $.noty.store[self.options.id]; // deleting noty from store
-
- if(self.options.theme.callback && self.options.theme.callback.onClose) {
- self.options.theme.callback.onClose.apply(self);
- }
-
- if(!self.options.dismissQueue) {
- // Queue render
- $.noty.ontap = true;
-
- $.notyRenderer.render();
- }
-
- if(self.options.maxVisible > 0 && self.options.dismissQueue) {
- $.notyRenderer.render();
- }
-
- }, // end close clean up
-
- setText: function(text) {
- if(!this.closed) {
- this.options.text = text;
- this.$bar.find('.noty_text').html(text);
- }
- return this;
- },
-
- setType: function(type) {
- if(!this.closed) {
- this.options.type = type;
- this.options.theme.style.apply(this);
- this.options.theme.callback.onShow.apply(this);
- }
- return this;
- },
-
- setTimeout: function(time) {
- if(!this.closed) {
- var self = this;
- this.options.timeout = time;
- self.$bar.delay(self.options.timeout).promise().done(function() {
- self.close();
- });
- }
- return this;
- },
-
- stopPropagation: function(evt) {
- evt = evt || window.event;
- if(typeof evt.stopPropagation !== "undefined") {
- evt.stopPropagation();
- }
- else {
- evt.cancelBubble = true;
- }
- },
-
- closed : false,
- showing: false,
- shown : false
-
- }; // end NotyObject
-
- $.notyRenderer = {};
-
- $.notyRenderer.init = function(options) {
-
- // Renderer creates a new noty
- var notification = Object.create(NotyObject).init(options);
-
- if(notification.options.killer)
- $.noty.closeAll();
-
- (notification.options.force) ? $.noty.queue.unshift(notification) : $.noty.queue.push(notification);
-
- $.notyRenderer.render();
-
- return ($.noty.returns == 'object') ? notification : notification.options.id;
- };
-
- $.notyRenderer.render = function() {
-
- var instance = $.noty.queue[0];
-
- if($.type(instance) === 'object') {
- if(instance.options.dismissQueue) {
- if(instance.options.maxVisible > 0) {
- if($(instance.options.layout.container.selector + ' > li').length < instance.options.maxVisible) {
- $.notyRenderer.show($.noty.queue.shift());
- }
- else {
-
- }
- }
- else {
- $.notyRenderer.show($.noty.queue.shift());
- }
- }
- else {
- if($.noty.ontap) {
- $.notyRenderer.show($.noty.queue.shift());
- $.noty.ontap = false;
- }
- }
- }
- else {
- $.noty.ontap = true; // Queue is over
- }
-
- };
-
- $.notyRenderer.show = function(notification) {
-
- if(notification.options.modal) {
- $.notyRenderer.createModalFor(notification);
- $.notyRenderer.setModalCount(+1);
- }
-
- // Where is the container?
- if(notification.options.custom) {
- if(notification.options.custom.find(notification.options.layout.container.selector).length == 0) {
- notification.options.custom.append($(notification.options.layout.container.object).addClass('i-am-new'));
- }
- else {
- notification.options.custom.find(notification.options.layout.container.selector).removeClass('i-am-new');
- }
- }
- else {
- if($(notification.options.layout.container.selector).length == 0) {
- $('body').append($(notification.options.layout.container.object).addClass('i-am-new'));
- }
- else {
- $(notification.options.layout.container.selector).removeClass('i-am-new');
- }
- }
-
- $.notyRenderer.setLayoutCountFor(notification, +1);
-
- notification.show();
- };
-
- $.notyRenderer.createModalFor = function(notification) {
- if($('.noty_modal').length == 0) {
- var modal = $('').addClass('noty_modal').addClass(notification.options.theme).data('noty_modal_count', 0);
-
- if(notification.options.theme.modal && notification.options.theme.modal.css)
- modal.css(notification.options.theme.modal.css);
-
- modal.prependTo($('body')).fadeIn(notification.options.animation.fadeSpeed);
-
- if($.inArray('backdrop', notification.options.closeWith) > -1)
- modal.on('click', function(e) {
- $.noty.closeAll();
- });
- }
- };
-
- $.notyRenderer.getLayoutCountFor = function(notification) {
- return $(notification.options.layout.container.selector).data('noty_layout_count') || 0;
- };
-
- $.notyRenderer.setLayoutCountFor = function(notification, arg) {
- return $(notification.options.layout.container.selector).data('noty_layout_count', $.notyRenderer.getLayoutCountFor(notification) + arg);
- };
-
- $.notyRenderer.getModalCount = function() {
- return $('.noty_modal').data('noty_modal_count') || 0;
- };
-
- $.notyRenderer.setModalCount = function(arg) {
- return $('.noty_modal').data('noty_modal_count', $.notyRenderer.getModalCount() + arg);
- };
-
- // This is for custom container
- $.fn.noty = function(options) {
- options.custom = $(this);
- return $.notyRenderer.init(options);
- };
-
- $.noty = {};
- $.noty.queue = [];
- $.noty.ontap = true;
- $.noty.layouts = {};
- $.noty.themes = {};
- $.noty.returns = 'object';
- $.noty.store = {};
-
- $.noty.get = function(id) {
- return $.noty.store.hasOwnProperty(id) ? $.noty.store[id] : false;
- };
-
- $.noty.close = function(id) {
- return $.noty.get(id) ? $.noty.get(id).close() : false;
- };
-
- $.noty.setText = function(id, text) {
- return $.noty.get(id) ? $.noty.get(id).setText(text) : false;
- };
-
- $.noty.setType = function(id, type) {
- return $.noty.get(id) ? $.noty.get(id).setType(type) : false;
- };
-
- $.noty.clearQueue = function() {
- $.noty.queue = [];
- };
-
- $.noty.closeAll = function() {
- $.noty.clearQueue();
- $.each($.noty.store, function(id, noty) {
- noty.close();
- });
- };
-
- var windowAlert = window.alert;
-
- $.noty.consumeAlert = function(options) {
- window.alert = function(text) {
- if(options)
- options.text = text;
- else
- options = {text: text};
-
- $.notyRenderer.init(options);
- };
- };
-
- $.noty.stopConsumeAlert = function() {
- window.alert = windowAlert;
- };
-
- $.noty.defaults = {
- layout : 'top',
- theme : 'defaultTheme',
- type : 'alert',
- text : '',
- dismissQueue: true,
- template : '',
- animation : {
- open : {height: 'toggle'},
- close : {height: 'toggle'},
- easing: 'swing',
- speed : 500,
- fadeSpeed: 'fast',
- },
- timeout : false,
- force : false,
- modal : false,
- maxVisible : 5,
- killer : false,
- closeWith : ['click'],
- callback : {
- onShow : function() {
- },
- afterShow : function() {
- },
- onClose : function() {
- },
- afterClose : function() {
- },
- onCloseClick: function() {
- }
- },
- buttons : false
- };
-
- $(window).on('resize', function() {
- $.each($.noty.layouts, function(index, layout) {
- layout.container.style.apply($(layout.container.selector));
- });
- });
-
- // Helpers
- window.noty = function noty(options) {
- return $.notyRenderer.init(options);
- };
-
-$.noty.layouts.bottom = {
- name : 'bottom',
- options : {},
- container: {
- object : '',
- selector: 'ul#noty_bottom_layout_container',
- style : function() {
- $(this).css({
- bottom : 0,
- left : '5%',
- position : 'fixed',
- width : '90%',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 9999999
- });
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none'
- },
- addClass : ''
-};
-
-$.noty.layouts.bottomCenter = {
- name : 'bottomCenter',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_bottomCenter_layout_container',
- style : function() {
- $(this).css({
- bottom : 20,
- left : 0,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- $(this).css({
- left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px'
- });
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
-
-
-$.noty.layouts.bottomLeft = {
- name : 'bottomLeft',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_bottomLeft_layout_container',
- style : function() {
- $(this).css({
- bottom : 20,
- left : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- if(window.innerWidth < 600) {
- $(this).css({
- left: 5
- });
- }
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
-$.noty.layouts.bottomRight = {
- name : 'bottomRight',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_bottomRight_layout_container',
- style : function() {
- $(this).css({
- bottom : 20,
- right : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- if(window.innerWidth < 600) {
- $(this).css({
- right: 5
- });
- }
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
-$.noty.layouts.center = {
- name : 'center',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_center_layout_container',
- style : function() {
- $(this).css({
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- // getting hidden height
- var dupe = $(this).clone().css({visibility: "hidden", display: "block", position: "absolute", top: 0, left: 0}).attr('id', 'dupe');
- $("body").append(dupe);
- dupe.find('.i-am-closing-now').remove();
- dupe.find('li').css('display', 'block');
- var actual_height = dupe.height();
- dupe.remove();
-
- if($(this).hasClass('i-am-new')) {
- $(this).css({
- left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px',
- top : ($(window).height() - actual_height) / 2 + 'px'
- });
- }
- else {
- $(this).animate({
- left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px',
- top : ($(window).height() - actual_height) / 2 + 'px'
- }, 500);
- }
-
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
-$.noty.layouts.centerLeft = {
- name : 'centerLeft',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_centerLeft_layout_container',
- style : function() {
- $(this).css({
- left : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- // getting hidden height
- var dupe = $(this).clone().css({visibility: "hidden", display: "block", position: "absolute", top: 0, left: 0}).attr('id', 'dupe');
- $("body").append(dupe);
- dupe.find('.i-am-closing-now').remove();
- dupe.find('li').css('display', 'block');
- var actual_height = dupe.height();
- dupe.remove();
-
- if($(this).hasClass('i-am-new')) {
- $(this).css({
- top: ($(window).height() - actual_height) / 2 + 'px'
- });
- }
- else {
- $(this).animate({
- top: ($(window).height() - actual_height) / 2 + 'px'
- }, 500);
- }
-
- if(window.innerWidth < 600) {
- $(this).css({
- left: 5
- });
- }
-
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
-
-$.noty.layouts.centerRight = {
- name : 'centerRight',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_centerRight_layout_container',
- style : function() {
- $(this).css({
- right : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- // getting hidden height
- var dupe = $(this).clone().css({visibility: "hidden", display: "block", position: "absolute", top: 0, left: 0}).attr('id', 'dupe');
- $("body").append(dupe);
- dupe.find('.i-am-closing-now').remove();
- dupe.find('li').css('display', 'block');
- var actual_height = dupe.height();
- dupe.remove();
-
- if($(this).hasClass('i-am-new')) {
- $(this).css({
- top: ($(window).height() - actual_height) / 2 + 'px'
- });
- }
- else {
- $(this).animate({
- top: ($(window).height() - actual_height) / 2 + 'px'
- }, 500);
- }
-
- if(window.innerWidth < 600) {
- $(this).css({
- right: 5
- });
- }
-
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
-$.noty.layouts.inline = {
- name : 'inline',
- options : {},
- container: {
- object : '',
- selector: 'ul.noty_inline_layout_container',
- style : function() {
- $(this).css({
- width : '100%',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 9999999
- });
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none'
- },
- addClass : ''
-};
-$.noty.layouts.top = {
- name : 'top',
- options : {},
- container: {
- object : '',
- selector: 'ul#noty_top_layout_container',
- style : function() {
- $(this).css({
- top : 0,
- left : '5%',
- position : 'fixed',
- width : '90%',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 9999999
- });
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none'
- },
- addClass : ''
-};
-$.noty.layouts.topCenter = {
- name : 'topCenter',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_topCenter_layout_container',
- style : function() {
- $(this).css({
- top : 20,
- left : 0,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- $(this).css({
- left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px'
- });
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
-
-$.noty.layouts.topLeft = {
- name : 'topLeft',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_topLeft_layout_container',
- style : function() {
- $(this).css({
- top : 20,
- left : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- if(window.innerWidth < 600) {
- $(this).css({
- left: 5
- });
- }
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
-$.noty.layouts.topRight = {
- name : 'topRight',
- options : { // overrides options
-
- },
- container: {
- object : '',
- selector: 'ul#noty_topRight_layout_container',
- style : function() {
- $(this).css({
- top : 20,
- right : 20,
- position : 'fixed',
- width : '310px',
- height : 'auto',
- margin : 0,
- padding : 0,
- listStyleType: 'none',
- zIndex : 10000000
- });
-
- if(window.innerWidth < 600) {
- $(this).css({
- right: 5
- });
- }
- }
- },
- parent : {
- object : '',
- selector: 'li',
- css : {}
- },
- css : {
- display: 'none',
- width : '310px'
- },
- addClass : ''
-};
-$.noty.themes.bootstrapTheme = {
- name: 'bootstrapTheme',
- modal: {
- css: {
- position: 'fixed',
- width: '100%',
- height: '100%',
- backgroundColor: '#000',
- zIndex: 10000,
- opacity: 0.6,
- display: 'none',
- left: 0,
- top: 0
- }
- },
- style: function() {
-
- var containerSelector = this.options.layout.container.selector;
- $(containerSelector).addClass('list-group');
-
- this.$closeButton.append('×Close');
- this.$closeButton.addClass('close');
-
- this.$bar.addClass( "list-group-item" ).css('padding', '0px');
-
- switch (this.options.type) {
- case 'alert': case 'notification':
- this.$bar.addClass( "list-group-item-info" );
- break;
- case 'warning':
- this.$bar.addClass( "list-group-item-warning" );
- break;
- case 'error':
- this.$bar.addClass( "list-group-item-danger" );
- break;
- case 'information':
- this.$bar.addClass("list-group-item-info");
- break;
- case 'success':
- this.$bar.addClass( "list-group-item-success" );
- break;
- }
-
- this.$message.css({
- fontSize: '13px',
- lineHeight: '16px',
- textAlign: 'center',
- padding: '8px 10px 9px',
- width: 'auto',
- position: 'relative'
- });
- },
- callback: {
- onShow: function() { },
- onClose: function() { }
- }
-};
-
-
-$.noty.themes.defaultTheme = {
- name : 'defaultTheme',
- helpers : {
- borderFix: function() {
- if(this.options.dismissQueue) {
- var selector = this.options.layout.container.selector + ' ' + this.options.layout.parent.selector;
- switch(this.options.layout.name) {
- case 'top':
- $(selector).css({borderRadius: '0px 0px 0px 0px'});
- $(selector).last().css({borderRadius: '0px 0px 5px 5px'});
- break;
- case 'topCenter':
- case 'topLeft':
- case 'topRight':
- case 'bottomCenter':
- case 'bottomLeft':
- case 'bottomRight':
- case 'center':
- case 'centerLeft':
- case 'centerRight':
- case 'inline':
- $(selector).css({borderRadius: '0px 0px 0px 0px'});
- $(selector).first().css({'border-top-left-radius': '5px', 'border-top-right-radius': '5px'});
- $(selector).last().css({'border-bottom-left-radius': '5px', 'border-bottom-right-radius': '5px'});
- break;
- case 'bottom':
- $(selector).css({borderRadius: '0px 0px 0px 0px'});
- $(selector).first().css({borderRadius: '5px 5px 0px 0px'});
- break;
- default:
- break;
- }
- }
- }
- },
- modal : {
- css: {
- position : 'fixed',
- width : '100%',
- height : '100%',
- backgroundColor: '#000',
- zIndex : 10000,
- opacity : 0.6,
- display : 'none',
- left : 0,
- top : 0
- }
- },
- style : function() {
-
- this.$bar.css({
- overflow : 'hidden',
- background: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAoCAQAAAClM0ndAAAAhklEQVR4AdXO0QrCMBBE0bttkk38/w8WRERpdyjzVOc+HxhIHqJGMQcFFkpYRQotLLSw0IJ5aBdovruMYDA/kT8plF9ZKLFQcgF18hDj1SbQOMlCA4kao0iiXmah7qBWPdxpohsgVZyj7e5I9KcID+EhiDI5gxBYKLBQYKHAQoGFAoEks/YEGHYKB7hFxf0AAAAASUVORK5CYII=') repeat-x scroll left top #fff"
- });
-
- this.$message.css({
- fontSize : '13px',
- lineHeight: '16px',
- textAlign : 'center',
- padding : '8px 10px 9px',
- width : 'auto',
- position : 'relative'
- });
-
- this.$closeButton.css({
- position : 'absolute',
- top : 4, right: 4,
- width : 10, height: 10,
- background: "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAxUlEQVR4AR3MPUoDURSA0e++uSkkOxC3IAOWNtaCIDaChfgXBMEZbQRByxCwk+BasgQRZLSYoLgDQbARxry8nyumPcVRKDfd0Aa8AsgDv1zp6pYd5jWOwhvebRTbzNNEw5BSsIpsj/kurQBnmk7sIFcCF5yyZPDRG6trQhujXYosaFoc+2f1MJ89uc76IND6F9BvlXUdpb6xwD2+4q3me3bysiHvtLYrUJto7PD/ve7LNHxSg/woN2kSz4txasBdhyiz3ugPGetTjm3XRokAAAAASUVORK5CYII=)",
- display : 'none',
- cursor : 'pointer'
- });
-
- this.$buttons.css({
- padding : 5,
- textAlign : 'right',
- borderTop : '1px solid #ccc',
- backgroundColor: '#fff'
- });
-
- this.$buttons.find('button').css({
- marginLeft: 5
- });
-
- this.$buttons.find('button:first').css({
- marginLeft: 0
- });
-
- this.$bar.on({
- mouseenter: function() {
- $(this).find('.noty_close').stop().fadeTo('normal', 1);
- },
- mouseleave: function() {
- $(this).find('.noty_close').stop().fadeTo('normal', 0);
- }
- });
-
- switch(this.options.layout.name) {
- case 'top':
- this.$bar.css({
- borderRadius: '0px 0px 5px 5px',
- borderBottom: '2px solid #eee',
- borderLeft : '2px solid #eee',
- borderRight : '2px solid #eee',
- boxShadow : "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- case 'topCenter':
- case 'center':
- case 'bottomCenter':
- case 'inline':
- this.$bar.css({
- borderRadius: '5px',
- border : '1px solid #eee',
- boxShadow : "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- this.$message.css({fontSize: '13px', textAlign: 'center'});
- break;
- case 'topLeft':
- case 'topRight':
- case 'bottomLeft':
- case 'bottomRight':
- case 'centerLeft':
- case 'centerRight':
- this.$bar.css({
- borderRadius: '5px',
- border : '1px solid #eee',
- boxShadow : "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- this.$message.css({fontSize: '13px', textAlign: 'left'});
- break;
- case 'bottom':
- this.$bar.css({
- borderRadius: '5px 5px 0px 0px',
- borderTop : '2px solid #eee',
- borderLeft : '2px solid #eee',
- borderRight : '2px solid #eee',
- boxShadow : "0 -2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- default:
- this.$bar.css({
- border : '2px solid #eee',
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- }
-
- switch(this.options.type) {
- case 'alert':
- case 'notification':
- this.$bar.css({backgroundColor: '#FFF', borderColor: '#CCC', color: '#444'});
- break;
- case 'warning':
- this.$bar.css({backgroundColor: '#FFEAA8', borderColor: '#FFC237', color: '#826200'});
- this.$buttons.css({borderTop: '1px solid #FFC237'});
- break;
- case 'error':
- this.$bar.css({backgroundColor: 'red', borderColor: 'darkred', color: '#FFF'});
- this.$message.css({fontWeight: 'bold'});
- this.$buttons.css({borderTop: '1px solid darkred'});
- break;
- case 'information':
- this.$bar.css({backgroundColor: '#57B7E2', borderColor: '#0B90C4', color: '#FFF'});
- this.$buttons.css({borderTop: '1px solid #0B90C4'});
- break;
- case 'success':
- this.$bar.css({backgroundColor: 'lightgreen', borderColor: '#50C24E', color: 'darkgreen'});
- this.$buttons.css({borderTop: '1px solid #50C24E'});
- break;
- default:
- this.$bar.css({backgroundColor: '#FFF', borderColor: '#CCC', color: '#444'});
- break;
- }
- },
- callback: {
- onShow : function() {
- $.noty.themes.defaultTheme.helpers.borderFix.apply(this);
- },
- onClose: function() {
- $.noty.themes.defaultTheme.helpers.borderFix.apply(this);
- }
- }
-};
-
-$.noty.themes.relax = {
- name : 'relax',
- helpers : {},
- modal : {
- css: {
- position : 'fixed',
- width : '100%',
- height : '100%',
- backgroundColor: '#000',
- zIndex : 10000,
- opacity : 0.6,
- display : 'none',
- left : 0,
- top : 0
- }
- },
- style : function() {
-
- this.$bar.css({
- overflow : 'hidden',
- margin : '4px 0',
- borderRadius: '2px'
- });
-
- this.$message.css({
- fontSize : '14px',
- lineHeight: '16px',
- textAlign : 'center',
- padding : '10px',
- width : 'auto',
- position : 'relative'
- });
-
- this.$closeButton.css({
- position : 'absolute',
- top : 4, right: 4,
- width : 10, height: 10,
- background: "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAxUlEQVR4AR3MPUoDURSA0e++uSkkOxC3IAOWNtaCIDaChfgXBMEZbQRByxCwk+BasgQRZLSYoLgDQbARxry8nyumPcVRKDfd0Aa8AsgDv1zp6pYd5jWOwhvebRTbzNNEw5BSsIpsj/kurQBnmk7sIFcCF5yyZPDRG6trQhujXYosaFoc+2f1MJ89uc76IND6F9BvlXUdpb6xwD2+4q3me3bysiHvtLYrUJto7PD/ve7LNHxSg/woN2kSz4txasBdhyiz3ugPGetTjm3XRokAAAAASUVORK5CYII=)",
- display : 'none',
- cursor : 'pointer'
- });
-
- this.$buttons.css({
- padding : 5,
- textAlign : 'right',
- borderTop : '1px solid #ccc',
- backgroundColor: '#fff'
- });
-
- this.$buttons.find('button').css({
- marginLeft: 5
- });
-
- this.$buttons.find('button:first').css({
- marginLeft: 0
- });
-
- this.$bar.on({
- mouseenter: function() {
- $(this).find('.noty_close').stop().fadeTo('normal', 1);
- },
- mouseleave: function() {
- $(this).find('.noty_close').stop().fadeTo('normal', 0);
- }
- });
-
- switch(this.options.layout.name) {
- case 'top':
- this.$bar.css({
- borderBottom: '2px solid #eee',
- borderLeft : '2px solid #eee',
- borderRight : '2px solid #eee',
- borderTop : '2px solid #eee',
- boxShadow : "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- case 'topCenter':
- case 'center':
- case 'bottomCenter':
- case 'inline':
- this.$bar.css({
- border : '1px solid #eee',
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- this.$message.css({fontSize: '13px', textAlign: 'center'});
- break;
- case 'topLeft':
- case 'topRight':
- case 'bottomLeft':
- case 'bottomRight':
- case 'centerLeft':
- case 'centerRight':
- this.$bar.css({
- border : '1px solid #eee',
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- this.$message.css({fontSize: '13px', textAlign: 'left'});
- break;
- case 'bottom':
- this.$bar.css({
- borderTop : '2px solid #eee',
- borderLeft : '2px solid #eee',
- borderRight : '2px solid #eee',
- borderBottom: '2px solid #eee',
- boxShadow : "0 -2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- default:
- this.$bar.css({
- border : '2px solid #eee',
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- }
-
- switch(this.options.type) {
- case 'alert':
- case 'notification':
- this.$bar.css({backgroundColor: '#FFF', borderColor: '#dedede', color: '#444'});
- break;
- case 'warning':
- this.$bar.css({backgroundColor: '#FFEAA8', borderColor: '#FFC237', color: '#826200'});
- this.$buttons.css({borderTop: '1px solid #FFC237'});
- break;
- case 'error':
- this.$bar.css({backgroundColor: '#FF8181', borderColor: '#e25353', color: '#FFF'});
- this.$message.css({fontWeight: 'bold'});
- this.$buttons.css({borderTop: '1px solid darkred'});
- break;
- case 'information':
- this.$bar.css({backgroundColor: '#78C5E7', borderColor: '#3badd6', color: '#FFF'});
- this.$buttons.css({borderTop: '1px solid #0B90C4'});
- break;
- case 'success':
- this.$bar.css({backgroundColor: '#BCF5BC', borderColor: '#7cdd77', color: 'darkgreen'});
- this.$buttons.css({borderTop: '1px solid #50C24E'});
- break;
- default:
- this.$bar.css({backgroundColor: '#FFF', borderColor: '#CCC', color: '#444'});
- break;
- }
- },
- callback: {
- onShow : function() {
-
- },
- onClose: function() {
-
- }
- }
-};
-
-
-return window.noty;
-
-});
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/packaged/jquery.noty.packaged.min.js b/app/webroot/js/jquery/noty/packaged/jquery.noty.packaged.min.js
deleted file mode 100644
index cf46332db..000000000
--- a/app/webroot/js/jquery/noty/packaged/jquery.noty.packaged.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b});var b={init:function(b){return this.options=a.extend({},a.noty.defaults,b),this.options.layout=this.options.custom?a.noty.layouts.inline:a.noty.layouts[this.options.layout],a.noty.themes[this.options.theme]?this.options.theme=a.noty.themes[this.options.theme]:b.themeClassName=this.options.theme,delete b.layout,delete b.theme,this.options=a.extend({},this.options,this.options.layout.options),this.options.id="noty_"+(new Date).getTime()*Math.floor(1e6*Math.random()),this.options=a.extend({},this.options,b),this._build(),this},_build:function(){var b=a('').attr("id",this.options.id);if(b.append(this.options.template).find(".noty_text").html(this.options.text),this.$bar=null!==this.options.layout.parent.object?a(this.options.layout.parent.object).css(this.options.layout.parent.css).append(b):b,this.options.themeClassName&&this.$bar.addClass(this.options.themeClassName).addClass("noty_container_type_"+this.options.type),this.options.buttons){this.options.closeWith=[],this.options.timeout=!1;var c=a("").addClass("noty_buttons");null!==this.options.layout.parent.object?this.$bar.find(".noty_bar").append(c):this.$bar.append(c);var d=this;a.each(this.options.buttons,function(b,c){var e=a("").addClass(c.addClass?c.addClass:"gray").html(c.text).attr("id",c.id?c.id:"button-"+b).attr("title",c.title).appendTo(d.$bar.find(".noty_buttons")).on("click",function(b){a.isFunction(c.onClick)&&c.onClick.call(e,d,b)})})}this.$message=this.$bar.find(".noty_message"),this.$closeButton=this.$bar.find(".noty_close"),this.$buttons=this.$bar.find(".noty_buttons"),a.noty.store[this.options.id]=this},show:function(){var b=this;return b.options.custom?b.options.custom.find(b.options.layout.container.selector).append(b.$bar):a(b.options.layout.container.selector).append(b.$bar),b.options.theme&&b.options.theme.style&&b.options.theme.style.apply(b),"function"===a.type(b.options.layout.css)?this.options.layout.css.apply(b.$bar):b.$bar.css(this.options.layout.css||{}),b.$bar.addClass(b.options.layout.addClass),b.options.layout.container.style.apply(a(b.options.layout.container.selector),[b.options.within]),b.showing=!0,b.options.theme&&b.options.theme.style&&b.options.theme.callback.onShow.apply(this),a.inArray("click",b.options.closeWith)>-1&&b.$bar.css("cursor","pointer").one("click",function(a){b.stopPropagation(a),b.options.callback.onCloseClick&&b.options.callback.onCloseClick.apply(b),b.close()}),a.inArray("hover",b.options.closeWith)>-1&&b.$bar.one("mouseenter",function(){b.close()}),a.inArray("button",b.options.closeWith)>-1&&b.$closeButton.one("click",function(a){b.stopPropagation(a),b.close()}),-1==a.inArray("button",b.options.closeWith)&&b.$closeButton.remove(),b.options.callback.onShow&&b.options.callback.onShow.apply(b),"string"==typeof b.options.animation.open?(b.$bar.css("height",b.$bar.innerHeight()),b.$bar.on("click",function(a){b.wasClicked=!0}),b.$bar.show().addClass(b.options.animation.open).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){b.options.callback.afterShow&&b.options.callback.afterShow.apply(b),b.showing=!1,b.shown=!0,b.hasOwnProperty("wasClicked")&&(b.$bar.off("click",function(a){b.wasClicked=!0}),b.close())})):b.$bar.animate(b.options.animation.open,b.options.animation.speed,b.options.animation.easing,function(){b.options.callback.afterShow&&b.options.callback.afterShow.apply(b),b.showing=!1,b.shown=!0}),b.options.timeout&&b.$bar.delay(b.options.timeout).promise().done(function(){b.close()}),this},close:function(){if(!(this.closed||this.$bar&&this.$bar.hasClass("i-am-closing-now"))){var b=this;if(this.showing)return void b.$bar.queue(function(){b.close.apply(b)});if(!this.shown&&!this.showing){var c=[];return a.each(a.noty.queue,function(a,d){d.options.id!=b.options.id&&c.push(d)}),void(a.noty.queue=c)}b.$bar.addClass("i-am-closing-now"),b.options.callback.onClose&&b.options.callback.onClose.apply(b),"string"==typeof b.options.animation.close?b.$bar.addClass(b.options.animation.close).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){b.options.callback.afterClose&&b.options.callback.afterClose.apply(b),b.closeCleanUp()}):b.$bar.clearQueue().stop().animate(b.options.animation.close,b.options.animation.speed,b.options.animation.easing,function(){b.options.callback.afterClose&&b.options.callback.afterClose.apply(b)}).promise().done(function(){b.closeCleanUp()})}},closeCleanUp:function(){var b=this;b.options.modal&&(a.notyRenderer.setModalCount(-1),0==a.notyRenderer.getModalCount()&&a(".noty_modal").fadeOut(b.options.animation.fadeSpeed,function(){a(this).remove()})),a.notyRenderer.setLayoutCountFor(b,-1),0==a.notyRenderer.getLayoutCountFor(b)&&a(b.options.layout.container.selector).remove(),"undefined"!=typeof b.$bar&&null!==b.$bar&&("string"==typeof b.options.animation.close?(b.$bar.css("transition","all 100ms ease").css("border",0).css("margin",0).height(0),b.$bar.one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){b.$bar.remove(),b.$bar=null,b.closed=!0,b.options.theme.callback&&b.options.theme.callback.onClose&&b.options.theme.callback.onClose.apply(b)})):(b.$bar.remove(),b.$bar=null,b.closed=!0)),delete a.noty.store[b.options.id],b.options.theme.callback&&b.options.theme.callback.onClose&&b.options.theme.callback.onClose.apply(b),b.options.dismissQueue||(a.noty.ontap=!0,a.notyRenderer.render()),b.options.maxVisible>0&&b.options.dismissQueue&&a.notyRenderer.render()},setText:function(a){return this.closed||(this.options.text=a,this.$bar.find(".noty_text").html(a)),this},setType:function(a){return this.closed||(this.options.type=a,this.options.theme.style.apply(this),this.options.theme.callback.onShow.apply(this)),this},setTimeout:function(a){if(!this.closed){var b=this;this.options.timeout=a,b.$bar.delay(b.options.timeout).promise().done(function(){b.close()})}return this},stopPropagation:function(a){a=a||window.event,"undefined"!=typeof a.stopPropagation?a.stopPropagation():a.cancelBubble=!0},closed:!1,showing:!1,shown:!1};a.notyRenderer={},a.notyRenderer.init=function(c){var d=Object.create(b).init(c);return d.options.killer&&a.noty.closeAll(),d.options.force?a.noty.queue.unshift(d):a.noty.queue.push(d),a.notyRenderer.render(),"object"==a.noty.returns?d:d.options.id},a.notyRenderer.render=function(){var b=a.noty.queue[0];"object"===a.type(b)?b.options.dismissQueue?b.options.maxVisible>0?a(b.options.layout.container.selector+" > li").length").addClass("noty_modal").addClass(b.options.theme).data("noty_modal_count",0);b.options.theme.modal&&b.options.theme.modal.css&&c.css(b.options.theme.modal.css),c.prependTo(a("body")).fadeIn(b.options.animation.fadeSpeed),a.inArray("backdrop",b.options.closeWith)>-1&&c.on("click",function(b){a.noty.closeAll()})}},a.notyRenderer.getLayoutCountFor=function(b){return a(b.options.layout.container.selector).data("noty_layout_count")||0},a.notyRenderer.setLayoutCountFor=function(b,c){return a(b.options.layout.container.selector).data("noty_layout_count",a.notyRenderer.getLayoutCountFor(b)+c)},a.notyRenderer.getModalCount=function(){return a(".noty_modal").data("noty_modal_count")||0},a.notyRenderer.setModalCount=function(b){return a(".noty_modal").data("noty_modal_count",a.notyRenderer.getModalCount()+b)},a.fn.noty=function(b){return b.custom=a(this),a.notyRenderer.init(b)},a.noty={},a.noty.queue=[],a.noty.ontap=!0,a.noty.layouts={},a.noty.themes={},a.noty.returns="object",a.noty.store={},a.noty.get=function(b){return a.noty.store.hasOwnProperty(b)?a.noty.store[b]:!1},a.noty.close=function(b){return a.noty.get(b)?a.noty.get(b).close():!1},a.noty.setText=function(b,c){return a.noty.get(b)?a.noty.get(b).setText(c):!1},a.noty.setType=function(b,c){return a.noty.get(b)?a.noty.get(b).setType(c):!1},a.noty.clearQueue=function(){a.noty.queue=[]},a.noty.closeAll=function(){a.noty.clearQueue(),a.each(a.noty.store,function(a,b){b.close()})};var c=window.alert;return a.noty.consumeAlert=function(b){window.alert=function(c){b?b.text=c:b={text:c},a.notyRenderer.init(b)}},a.noty.stopConsumeAlert=function(){window.alert=c},a.noty.defaults={layout:"top",theme:"defaultTheme",type:"alert",text:"",dismissQueue:!0,template:'',animation:{open:{height:"toggle"},close:{height:"toggle"},easing:"swing",speed:500,fadeSpeed:"fast"},timeout:!1,force:!1,modal:!1,maxVisible:5,killer:!1,closeWith:["click"],callback:{onShow:function(){},afterShow:function(){},onClose:function(){},afterClose:function(){},onCloseClick:function(){}},buttons:!1},a(window).on("resize",function(){a.each(a.noty.layouts,function(b,c){c.container.style.apply(a(c.container.selector))})}),window.noty=function(b){return a.notyRenderer.init(b)},a.noty.layouts.bottom={name:"bottom",options:{},container:{object:'',selector:"ul#noty_bottom_layout_container",style:function(){a(this).css({bottom:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"",selector:"li",css:{}},css:{display:"none"},addClass:""},a.noty.layouts.bottomCenter={name:"bottomCenter",options:{},container:{object:'',selector:"ul#noty_bottomCenter_layout_container",style:function(){a(this).css({bottom:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),a(this).css({left:(a(window).width()-a(this).outerWidth(!1))/2+"px"})}},parent:{object:"",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},a.noty.layouts.bottomLeft={name:"bottomLeft",options:{},container:{object:'',selector:"ul#noty_bottomLeft_layout_container",style:function(){a(this).css({bottom:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&a(this).css({left:5})}},parent:{object:"",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},a.noty.layouts.bottomRight={name:"bottomRight",options:{},container:{object:'',selector:"ul#noty_bottomRight_layout_container",style:function(){a(this).css({bottom:20,right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&a(this).css({right:5})}},parent:{object:"",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},a.noty.layouts.center={name:"center",options:{},container:{object:'',selector:"ul#noty_center_layout_container",style:function(){a(this).css({position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var b=a(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");a("body").append(b),b.find(".i-am-closing-now").remove(),b.find("li").css("display","block");var c=b.height();b.remove(),a(this).hasClass("i-am-new")?a(this).css({left:(a(window).width()-a(this).outerWidth(!1))/2+"px",top:(a(window).height()-c)/2+"px"}):a(this).animate({left:(a(window).width()-a(this).outerWidth(!1))/2+"px",top:(a(window).height()-c)/2+"px"},500)}},parent:{object:"",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},a.noty.layouts.centerLeft={name:"centerLeft",options:{},container:{object:'',selector:"ul#noty_centerLeft_layout_container",style:function(){a(this).css({left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var b=a(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");a("body").append(b),b.find(".i-am-closing-now").remove(),b.find("li").css("display","block");var c=b.height();b.remove(),a(this).hasClass("i-am-new")?a(this).css({top:(a(window).height()-c)/2+"px"}):a(this).animate({top:(a(window).height()-c)/2+"px"},500),window.innerWidth<600&&a(this).css({left:5})}},parent:{object:"",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},a.noty.layouts.centerRight={name:"centerRight",options:{},container:{object:'',selector:"ul#noty_centerRight_layout_container",style:function(){a(this).css({right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var b=a(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");a("body").append(b),b.find(".i-am-closing-now").remove(),b.find("li").css("display","block");var c=b.height();b.remove(),a(this).hasClass("i-am-new")?a(this).css({top:(a(window).height()-c)/2+"px"}):a(this).animate({top:(a(window).height()-c)/2+"px"},500),window.innerWidth<600&&a(this).css({right:5})}},parent:{object:"",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},a.noty.layouts.inline={name:"inline",options:{},container:{object:'',selector:"ul.noty_inline_layout_container",style:function(){a(this).css({width:"100%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"",selector:"li",css:{}},css:{display:"none"},addClass:""},a.noty.layouts.top={name:"top",options:{},container:{object:'',selector:"ul#noty_top_layout_container",style:function(){a(this).css({top:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"",selector:"li",css:{}},css:{display:"none"},addClass:""},a.noty.layouts.topCenter={name:"topCenter",options:{},container:{object:'',selector:"ul#noty_topCenter_layout_container",style:function(){a(this).css({top:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),a(this).css({left:(a(window).width()-a(this).outerWidth(!1))/2+"px"})}},parent:{object:"",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},a.noty.layouts.topLeft={name:"topLeft",options:{},container:{object:'',selector:"ul#noty_topLeft_layout_container",style:function(){a(this).css({top:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&a(this).css({left:5})}},parent:{object:"",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},a.noty.layouts.topRight={name:"topRight",options:{},container:{object:'',selector:"ul#noty_topRight_layout_container",style:function(){a(this).css({top:20,right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&a(this).css({right:5})}},parent:{object:"",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},a.noty.themes.bootstrapTheme={name:"bootstrapTheme",modal:{css:{position:"fixed",width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e4,opacity:.6,display:"none",left:0,top:0}},style:function(){var b=this.options.layout.container.selector;switch(a(b).addClass("list-group"),this.$closeButton.append('×Close'),this.$closeButton.addClass("close"),this.$bar.addClass("list-group-item").css("padding","0px"),this.options.type){case"alert":case"notification":this.$bar.addClass("list-group-item-info");break;case"warning":this.$bar.addClass("list-group-item-warning");break;case"error":this.$bar.addClass("list-group-item-danger");break;case"information":this.$bar.addClass("list-group-item-info");break;case"success":this.$bar.addClass("list-group-item-success")}this.$message.css({fontSize:"13px",lineHeight:"16px",textAlign:"center",padding:"8px 10px 9px",width:"auto",position:"relative"})},callback:{onShow:function(){},onClose:function(){}}},a.noty.themes.defaultTheme={name:"defaultTheme",helpers:{borderFix:function(){if(this.options.dismissQueue){var b=this.options.layout.container.selector+" "+this.options.layout.parent.selector;switch(this.options.layout.name){case"top":a(b).css({borderRadius:"0px 0px 0px 0px"}),a(b).last().css({borderRadius:"0px 0px 5px 5px"});break;case"topCenter":case"topLeft":case"topRight":case"bottomCenter":case"bottomLeft":case"bottomRight":case"center":case"centerLeft":case"centerRight":case"inline":a(b).css({borderRadius:"0px 0px 0px 0px"}),a(b).first().css({"border-top-left-radius":"5px","border-top-right-radius":"5px"}),a(b).last().css({"border-bottom-left-radius":"5px","border-bottom-right-radius":"5px"});break;case"bottom":a(b).css({borderRadius:"0px 0px 0px 0px"}),a(b).first().css({borderRadius:"5px 5px 0px 0px"})}}}},modal:{css:{position:"fixed",width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e4,opacity:.6,display:"none",left:0,top:0}},style:function(){switch(this.$bar.css({overflow:"hidden",background:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAoCAQAAAClM0ndAAAAhklEQVR4AdXO0QrCMBBE0bttkk38/w8WRERpdyjzVOc+HxhIHqJGMQcFFkpYRQotLLSw0IJ5aBdovruMYDA/kT8plF9ZKLFQcgF18hDj1SbQOMlCA4kao0iiXmah7qBWPdxpohsgVZyj7e5I9KcID+EhiDI5gxBYKLBQYKHAQoGFAoEks/YEGHYKB7hFxf0AAAAASUVORK5CYII=') repeat-x scroll left top #fff"}),this.$message.css({fontSize:"13px",lineHeight:"16px",textAlign:"center",padding:"8px 10px 9px",width:"auto",position:"relative"}),this.$closeButton.css({position:"absolute",top:4,right:4,width:10,height:10,background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAxUlEQVR4AR3MPUoDURSA0e++uSkkOxC3IAOWNtaCIDaChfgXBMEZbQRByxCwk+BasgQRZLSYoLgDQbARxry8nyumPcVRKDfd0Aa8AsgDv1zp6pYd5jWOwhvebRTbzNNEw5BSsIpsj/kurQBnmk7sIFcCF5yyZPDRG6trQhujXYosaFoc+2f1MJ89uc76IND6F9BvlXUdpb6xwD2+4q3me3bysiHvtLYrUJto7PD/ve7LNHxSg/woN2kSz4txasBdhyiz3ugPGetTjm3XRokAAAAASUVORK5CYII=)",display:"none",cursor:"pointer"}),this.$buttons.css({padding:5,textAlign:"right",borderTop:"1px solid #ccc",backgroundColor:"#fff"}),this.$buttons.find("button").css({marginLeft:5}),this.$buttons.find("button:first").css({marginLeft:0}),this.$bar.on({mouseenter:function(){a(this).find(".noty_close").stop().fadeTo("normal",1)},mouseleave:function(){a(this).find(".noty_close").stop().fadeTo("normal",0)}}),this.options.layout.name){case"top":this.$bar.css({borderRadius:"0px 0px 5px 5px",borderBottom:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"});break;case"topCenter":case"center":case"bottomCenter":case"inline":this.$bar.css({borderRadius:"5px",border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"center"});break;case"topLeft":case"topRight":case"bottomLeft":case"bottomRight":case"centerLeft":case"centerRight":this.$bar.css({borderRadius:"5px",border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"left"});break;case"bottom":this.$bar.css({borderRadius:"5px 5px 0px 0px",borderTop:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",boxShadow:"0 -2px 4px rgba(0, 0, 0, 0.1)"});break;default:this.$bar.css({border:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"})}switch(this.options.type){case"alert":case"notification":this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"});break;case"warning":this.$bar.css({backgroundColor:"#FFEAA8",borderColor:"#FFC237",color:"#826200"}),this.$buttons.css({borderTop:"1px solid #FFC237"});break;case"error":this.$bar.css({backgroundColor:"red",borderColor:"darkred",color:"#FFF"}),this.$message.css({fontWeight:"bold"}),this.$buttons.css({borderTop:"1px solid darkred"});break;case"information":this.$bar.css({backgroundColor:"#57B7E2",borderColor:"#0B90C4",color:"#FFF"}),this.$buttons.css({borderTop:"1px solid #0B90C4"});break;case"success":this.$bar.css({backgroundColor:"lightgreen",borderColor:"#50C24E",color:"darkgreen"}),this.$buttons.css({borderTop:"1px solid #50C24E"});break;default:this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"})}},callback:{onShow:function(){a.noty.themes.defaultTheme.helpers.borderFix.apply(this)},onClose:function(){a.noty.themes.defaultTheme.helpers.borderFix.apply(this)}}},a.noty.themes.relax={name:"relax",helpers:{},modal:{css:{position:"fixed",width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e4,opacity:.6,display:"none",left:0,top:0}},style:function(){switch(this.$bar.css({overflow:"hidden",margin:"4px 0",borderRadius:"2px"}),this.$message.css({fontSize:"14px",lineHeight:"16px",textAlign:"center",padding:"10px",width:"auto",position:"relative"}),this.$closeButton.css({position:"absolute",top:4,right:4,width:10,height:10,background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAxUlEQVR4AR3MPUoDURSA0e++uSkkOxC3IAOWNtaCIDaChfgXBMEZbQRByxCwk+BasgQRZLSYoLgDQbARxry8nyumPcVRKDfd0Aa8AsgDv1zp6pYd5jWOwhvebRTbzNNEw5BSsIpsj/kurQBnmk7sIFcCF5yyZPDRG6trQhujXYosaFoc+2f1MJ89uc76IND6F9BvlXUdpb6xwD2+4q3me3bysiHvtLYrUJto7PD/ve7LNHxSg/woN2kSz4txasBdhyiz3ugPGetTjm3XRokAAAAASUVORK5CYII=)",display:"none",cursor:"pointer"}),this.$buttons.css({padding:5,textAlign:"right",borderTop:"1px solid #ccc",backgroundColor:"#fff"}),this.$buttons.find("button").css({marginLeft:5}),this.$buttons.find("button:first").css({marginLeft:0}),this.$bar.on({mouseenter:function(){a(this).find(".noty_close").stop().fadeTo("normal",1)},mouseleave:function(){a(this).find(".noty_close").stop().fadeTo("normal",0)}}),this.options.layout.name){case"top":this.$bar.css({borderBottom:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",borderTop:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"});break;case"topCenter":case"center":case"bottomCenter":case"inline":this.$bar.css({border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"center"});break;case"topLeft":case"topRight":case"bottomLeft":case"bottomRight":case"centerLeft":case"centerRight":this.$bar.css({border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"left"});break;case"bottom":this.$bar.css({borderTop:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",borderBottom:"2px solid #eee",boxShadow:"0 -2px 4px rgba(0, 0, 0, 0.1)"});break;default:this.$bar.css({border:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"})}switch(this.options.type){case"alert":case"notification":this.$bar.css({backgroundColor:"#FFF",borderColor:"#dedede",color:"#444"});break;case"warning":this.$bar.css({backgroundColor:"#FFEAA8",borderColor:"#FFC237",color:"#826200"}),this.$buttons.css({borderTop:"1px solid #FFC237"});break;case"error":this.$bar.css({backgroundColor:"#FF8181",borderColor:"#e25353",color:"#FFF"}),this.$message.css({fontWeight:"bold"}),this.$buttons.css({borderTop:"1px solid darkred"});break;case"information":this.$bar.css({backgroundColor:"#78C5E7",borderColor:"#3badd6",color:"#FFF"}),this.$buttons.css({borderTop:"1px solid #0B90C4"});break;case"success":this.$bar.css({backgroundColor:"#BCF5BC",borderColor:"#7cdd77",color:"darkgreen"}),this.$buttons.css({borderTop:"1px solid #50C24E"});break;default:this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"})}},callback:{onShow:function(){},onClose:function(){}}},window.noty});
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/promise.js b/app/webroot/js/jquery/noty/promise.js
deleted file mode 100644
index f93a84271..000000000
--- a/app/webroot/js/jquery/noty/promise.js
+++ /dev/null
@@ -1,432 +0,0 @@
-/*!
- * Noty Helpers Javascript From JQuery Javascript Library
- *
- * Ported by Maksim Pecherskiy. Original Licensing:
- *
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Mon Nov 21 21:11:03 2011 -0500
- */
-
-
-(function(){
-
- // String to Object flags format cache
-var flagsCache = {};
-
-// Convert String-formatted flags into Object-formatted ones and store in cache
-function createFlags( flags ) {
- var object = flagsCache[ flags ] = {},
- i, length;
- flags = flags.split( /\s+/ );
- for ( i = 0, length = flags.length; i < length; i++ ) {
- object[ flags[i] ] = true;
- }
- return object;
-}
-
-jQuery.extend({
-
- _mark: function( elem, type ) {
- if ( elem ) {
- type = (type || "fx") + "mark";
- jQuery.data( elem, type, (jQuery.data(elem,type,undefined,true) || 0) + 1, true );
- }
- },
-
- _unmark: function( force, elem, type ) {
- if ( force !== true ) {
- type = elem;
- elem = force;
- force = false;
- }
- if ( elem ) {
- type = type || "fx";
- var key = type + "mark",
- count = force ? 0 : ( (jQuery.data( elem, key, undefined, true) || 1 ) - 1 );
- if ( count ) {
- jQuery.data( elem, key, count, true );
- } else {
- jQuery.removeData( elem, key, true );
- handleQueueMarkDefer( elem, type, "mark" );
- }
- }
- },
-
- queue: function( elem, type, data ) {
- if ( elem ) {
- type = (type || "fx") + "queue";
- var q = jQuery.data( elem, type, undefined, true );
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !q || jQuery.isArray(data) ) {
- q = jQuery.data( elem, type, jQuery.makeArray(data), true );
- } else {
- q.push( data );
- }
- }
- return q || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- fn = queue.shift(),
- defer;
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- }
-
- if ( fn ) {
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift("inprogress");
- }
-
- fn.call(elem, function() {
- jQuery.dequeue(elem, type);
- });
- }
-
- if ( !queue.length ) {
- jQuery.removeData( elem, type + "queue", true );
- handleQueueMarkDefer( elem, type, "queue" );
- }
- }
-});
-
-jQuery.fn.extend({
- queue: function( type, data ) {
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- }
-
- if ( data === undefined ) {
- return jQuery.queue( this[0], type );
- }
- return this.each(function() {
- var queue = jQuery.queue( this, type, data );
-
- if ( type === "fx" && queue[0] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- });
- },
- dequeue: function( type ) {
- return this.each(function() {
- jQuery.dequeue( this, type );
- });
- },
- // Based off of the plugin by Clint Helfers, with permission.
- // http://blindsignals.com/index.php/2009/07/jquery-delay/
- delay: function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
- type = type || "fx";
-
- return this.queue( type, function() {
- var elem = this;
- setTimeout(function() {
- jQuery.dequeue( elem, type );
- }, time );
- });
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, object ) {
- if ( typeof type !== "string" ) {
- object = type;
- type = undefined;
- }
- type = type || "fx";
- var defer = jQuery.Deferred(),
- elements = this,
- i = elements.length,
- count = 1,
- deferDataKey = type + "defer",
- queueDataKey = type + "queue",
- markDataKey = type + "mark",
- tmp;
- function resolve() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- }
- while( i-- ) {
- if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
- ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
- jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
- jQuery.data( elements[ i ], deferDataKey, jQuery._Deferred(), true ) )) {
- count++;
- tmp.done( resolve );
- }
- }
- resolve();
- return defer.promise();
- }
-});
-
-function handleQueueMarkDefer( elem, type, src ) {
- var deferDataKey = type + "defer",
- queueDataKey = type + "queue",
- markDataKey = type + "mark",
- defer = jQuery._data( elem, deferDataKey );
- if ( defer &&
- ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
- ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
- // Give room for hard-coded callbacks to fire first
- // and eventually mark/queue something else on the element
- setTimeout( function() {
- if ( !jQuery._data( elem, queueDataKey ) &&
- !jQuery._data( elem, markDataKey ) ) {
- jQuery.removeData( elem, deferDataKey, true );
- defer.fire();
- }
- }, 0 );
- }
-}
-
-
-
-jQuery.Callbacks = function( flags ) {
-
- // Convert flags from String-formatted to Object-formatted
- // (we check in cache first)
- flags = flags ? ( /*flagsCache[ flags ] || */createFlags( flags ) ) : {};
-
- var // Actual callback list
- list = [],
- // Stack of fire calls for repeatable lists
- stack = [],
- // Last fire value (for non-forgettable lists)
- memory,
- // Flag to know if list is currently firing
- firing,
- // First callback to fire (used internally by add and fireWith)
- firingStart,
- // End of the loop when firing
- firingLength,
- // Index of currently firing callback (modified by remove if needed)
- firingIndex,
- // Add one or several callbacks to the list
- add = function( args ) {
- var i,
- length,
- elem,
- type,
- actual;
- for ( i = 0, length = args.length; i < length; i++ ) {
- elem = args[ i ];
- type = jQuery.type( elem );
- if ( type === "array" ) {
- // Inspect recursively
- add( elem );
- } else if ( type === "function" ) {
- // Add if not in unique mode and callback is not in
- if ( !flags.unique || !self.has( elem ) ) {
- list.push( elem );
- }
- }
- }
- },
- // Fire callbacks
- fire = function( context, args ) {
- args = args || [];
- memory = !flags.memory || [ context, args ];
- firing = true;
- firingIndex = firingStart || 0;
- firingStart = 0;
- firingLength = list.length;
- for ( ; list && firingIndex < firingLength; firingIndex++ ) {
- if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
- memory = true; // Mark as halted
- break;
- }
- }
- firing = false;
- if ( list ) {
- if ( !flags.once ) {
- if ( stack && stack.length ) {
- memory = stack.shift();
- self.fireWith( memory[ 0 ], memory[ 1 ] );
- }
- } else if ( memory === true ) {
- self.disable();
- } else {
- list = [];
- }
- }
- },
- // Actual Callbacks object
- self = {
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
- var length = list.length;
- add( arguments );
- // Do we need to add the callbacks to the
- // current firing batch?
- if ( firing ) {
- firingLength = list.length;
- // With memory, if we're not firing then
- // we should call right away, unless previous
- // firing was halted (stopOnFalse)
- } else if ( memory && memory !== true ) {
- firingStart = length;
- fire( memory[ 0 ], memory[ 1 ] );
- }
- }
- return this;
- },
- // Remove a callback from the list
- remove: function() {
- if ( list ) {
- var args = arguments,
- argIndex = 0,
- argLength = args.length;
- for ( ; argIndex < argLength ; argIndex++ ) {
- for ( var i = 0; i < list.length; i++ ) {
- if ( args[ argIndex ] === list[ i ] ) {
- // Handle firingIndex and firingLength
- if ( firing ) {
- if ( i <= firingLength ) {
- firingLength--;
- if ( i <= firingIndex ) {
- firingIndex--;
- }
- }
- }
- // Remove the element
- list.splice( i--, 1 );
- // If we have some unicity property then
- // we only need to do this once
- if ( flags.unique ) {
- break;
- }
- }
- }
- }
- }
- return this;
- },
- // Control if a given callback is in the list
- has: function( fn ) {
- if ( list ) {
- var i = 0,
- length = list.length;
- for ( ; i < length; i++ ) {
- if ( fn === list[ i ] ) {
- return true;
- }
- }
- }
- return false;
- },
- // Remove all callbacks from the list
- empty: function() {
- list = [];
- return this;
- },
- // Have the list do nothing anymore
- disable: function() {
- list = stack = memory = undefined;
- return this;
- },
- // Is it disabled?
- disabled: function() {
- return !list;
- },
- // Lock the list in its current state
- lock: function() {
- stack = undefined;
- if ( !memory || memory === true ) {
- self.disable();
- }
- return this;
- },
- // Is it locked?
- locked: function() {
- return !stack;
- },
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( stack ) {
- if ( firing ) {
- if ( !flags.once ) {
- stack.push( [ context, args ] );
- }
- } else if ( !( flags.once && memory ) ) {
- fire( context, args );
- }
- }
- return this;
- },
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!memory;
- }
- };
-
- return self;
-};
-
-
-
-jQuery.fn.extend({
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, object ) {
- if ( typeof type !== "string" ) {
- object = type;
- type = undefined;
- }
- type = type || "fx";
- var defer = jQuery.Deferred(),
- elements = this,
- i = elements.length,
- count = 1,
- deferDataKey = type + "defer",
- queueDataKey = type + "queue",
- markDataKey = type + "mark",
- tmp;
- function resolve() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- }
- while( i-- ) {
- if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
- ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
- jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
- jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
- count++;
- tmp.add( resolve );
- }
- }
- resolve();
- return defer.promise();
- }
-});
-})();
\ No newline at end of file
diff --git a/app/webroot/js/jquery/noty/themes/comanage.js b/app/webroot/js/jquery/noty/themes/comanage.js
deleted file mode 100644
index 52553a41a..000000000
--- a/app/webroot/js/jquery/noty/themes/comanage.js
+++ /dev/null
@@ -1,162 +0,0 @@
-;(function($) {
-
- $.noty.themes.comanage = {
- name: 'comanage',
- helpers: {
- borderFix: function() {
- if (this.options.dismissQueue) {
- var selector = this.options.layout.container.selector + ' ' + this.options.layout.parent.selector;
- switch (this.options.layout.name) {
- case 'top':
- $(selector).css({borderRadius: '0px 0px 0px 0px'});
- $(selector).last().css({borderRadius: '0px 0px 5px 5px'}); break;
- case 'topCenter': case 'topLeft': case 'topRight':
- case 'bottomCenter': case 'bottomLeft': case 'bottomRight':
- case 'center': case 'centerLeft': case 'centerRight': case 'inline':
- $(selector).css({borderRadius: '0px 0px 0px 0px'});
- $(selector).first().css({'border-top-left-radius': '5px', 'border-top-right-radius': '5px'});
- $(selector).last().css({'border-bottom-left-radius': '5px', 'border-bottom-right-radius': '5px'}); break;
- case 'bottom':
- $(selector).css({borderRadius: '0px 0px 0px 0px'});
- $(selector).first().css({borderRadius: '5px 5px 0px 0px'}); break;
- default: break;
- }
- }
- }
- },
- modal: {
- css: {
- position: 'fixed',
- width: '100%',
- height: '100%',
- backgroundColor: '#000',
- zIndex: 10000,
- opacity: 0.6,
- display: 'none',
- left: 0,
- top: 0
- }
- },
- style: function() {
-
- this.$bar.css({
- overflow: 'hidden',
- background: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAoCAYAAAAPOoFWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPZJREFUeNq81tsOgjAMANB2ov7/7ypaN7IlIwi9rGuT8QSc9EIDAsAznxvY4pXPKr05RUE5MEVB+TyWfCEl9LZApYopCmo9C4FKSMtYoI8Bwv79aQJU4l6hXXCZrQbokJEksxHo9KMOgc6w1atHXM8K9DVC7FQnJ0i8iK3QooGgbnyKgMDygBWyYFZoqx4qS27KqLZJjA1D0jK6QJcYEQEiWv9PGkTsbqxQ8oT+ZtZB6AkdsJnQDnMoHXHLGKOgDYuCWmYhEERCI5gaamW0bnHdA3k2ltlIN+2qKRyCND0bhqSYCyTB3CAOc4WusBEIpkeBuPgJMAAX8Hs1NfqHRgAAAABJRU5ErkJggg==') repeat-x scroll left top #fff"
- });
-
- this.$message.css({
- fontSize: '13px',
- lineHeight: '16px',
- textAlign: 'center',
- padding: '8px 10px 9px',
- width: 'auto',
- position: 'relative'
- });
-
- this.$closeButton.css({
- position: 'absolute',
- top: 4, right: 4,
- width: 10, height: 10,
- background: "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAATpJREFUeNoszrFqVFEUheG19zlz7sQ7ijMQBAvfYBqbpJCoZSAQbOwEE1IHGytbLQUJ8SUktW8gCCFJMSGSNxCmFBJO7j5rpXD6n5/P5vM53H3b3T9LOiB5AQDuDjM7BnA7DMPHDGBH0nuSzwHsRcRVRNRSysuU0i6AOwA/02w2+9Fae00SEbEh6SGAR5K+k3zWWptKepCm0+kpyRoRGyRBcpPkDsn1iEBr7drdP2VJZyQXERGSPpiZAViTBACXKaV9kqd5uVzCzO5KKb/d/UZSDwD/eyxqree1VqSu6zKAF2Z2RPJJaw0rAkjOJT0m+SuT/AbgDcmnkmBmfwAsJL1dXQ8lWY6IGwB1ZbrOOb8zs8thGP4COFwx/mE8Ho9Go9ErMzvJOW/1fY/JZIJSypqZfXX3L13X9fcDAKJct1sx3OiuAAAAAElFTkSuQmCC)",
- display: 'none',
- cursor: 'pointer'
- });
-
- this.$buttons.css({
- padding: 5,
- textAlign: 'right',
- borderTop: '1px solid #ccc',
- backgroundColor: '#fff'
- });
-
- this.$buttons.find('button').css({
- marginLeft: 5
- });
-
- this.$buttons.find('button:first').css({
- marginLeft: 0
- });
-
- this.$bar.bind({
- mouseenter: function() { $(this).find('.noty_close').stop().fadeTo('normal',1); },
- mouseleave: function() { $(this).find('.noty_close').stop().fadeTo('normal',0); }
- });
-
- switch (this.options.layout.name) {
- case 'top':
- this.$bar.css({
- borderRadius: '0px 0px 5px 5px',
- borderBottom: '2px solid #eee',
- borderLeft: '2px solid #eee',
- borderRight: '2px solid #eee',
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- case 'topCenter': case 'center': case 'bottomCenter': case 'inline':
- this.$bar.css({
- borderRadius: '5px',
- border: '1px solid #eee',
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- this.$message.css({fontSize: '13px', textAlign: 'center'});
- break;
- case 'topLeft': case 'topRight':
- case 'bottomLeft': case 'bottomRight':
- case 'centerLeft': case 'centerRight':
- this.$bar.css({
- borderRadius: '5px',
- border: '1px solid #eee',
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- this.$message.css({fontSize: '13px', textAlign: 'left'});
- break;
- case 'bottom':
- this.$bar.css({
- borderRadius: '5px 5px 0px 0px',
- borderTop: '2px solid #eee',
- borderLeft: '2px solid #eee',
- borderRight: '2px solid #eee',
- boxShadow: "0 -2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- default:
- this.$bar.css({
- border: '2px solid #eee',
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- }
-
- switch (this.options.type) {
- case 'alert': case 'notification':
- $('').prependTo(this.$message);
- this.$bar.css({backgroundColor: '#FFF', borderColor: '#CCC', color: '#444'}); break;
- case 'warning':
- $('').prependTo(this.$message);
- this.$bar.css({backgroundColor: '#FFEAA8', borderColor: '#FFC237', color: '#826200'});
- this.$buttons.css({borderTop: '1px solid #FFC237'}); break;
- case 'error':
- $('').prependTo(this.$message);
- this.$bar.css({backgroundColor: 'red', borderColor: 'darkred', color: '#FFF'});
- this.$message.css({fontWeight: 'bold'});
- this.$buttons.css({borderTop: '1px solid darkred'}); break;
- case 'information':
- $('').prependTo(this.$message);
- this.$bar.css({backgroundColor: '#57B7E2', borderColor: '#0B90C4', color: '#FFF'});
- this.$buttons.css({borderTop: '1px solid #0B90C4'}); break;
- case 'success':
- $('').prependTo(this.$message);
- this.$bar.css({backgroundColor: 'lightgreen', borderColor: '#50C24E', color: 'darkgreen'});
- this.$buttons.css({borderTop: '1px solid #50C24E'});
- break;
- default:
- this.$bar.css({backgroundColor: '#FFF', borderColor: '#CCC', color: '#444'}); break;
- }
- },
- callback: {
- onShow: function() { $.noty.themes.comanage.helpers.borderFix.apply(this); },
- onClose: function() { $.noty.themes.comanage.helpers.borderFix.apply(this); }
- }
- };
-
-})(jQuery);
diff --git a/app/webroot/js/jquery/noty/themes/default.js b/app/webroot/js/jquery/noty/themes/default.js
deleted file mode 100644
index aec5a0cea..000000000
--- a/app/webroot/js/jquery/noty/themes/default.js
+++ /dev/null
@@ -1,184 +0,0 @@
-$.noty.themes.defaultTheme = {
- name : 'defaultTheme',
- helpers : {
- borderFix: function() {
- if(this.options.dismissQueue) {
- var selector = this.options.layout.container.selector + ' ' + this.options.layout.parent.selector;
- switch(this.options.layout.name) {
- case 'top':
- $(selector).css({borderRadius: '0px 0px 0px 0px'});
- $(selector).last().css({borderRadius: '0px 0px 5px 5px'});
- break;
- case 'topCenter':
- case 'topLeft':
- case 'topRight':
- case 'bottomCenter':
- case 'bottomLeft':
- case 'bottomRight':
- case 'center':
- case 'centerLeft':
- case 'centerRight':
- case 'inline':
- $(selector).css({borderRadius: '0px 0px 0px 0px'});
- $(selector).first().css({'border-top-left-radius': '5px', 'border-top-right-radius': '5px'});
- $(selector).last().css({'border-bottom-left-radius': '5px', 'border-bottom-right-radius': '5px'});
- break;
- case 'bottom':
- $(selector).css({borderRadius: '0px 0px 0px 0px'});
- $(selector).first().css({borderRadius: '5px 5px 0px 0px'});
- break;
- default:
- break;
- }
- }
- }
- },
- modal : {
- css: {
- position : 'fixed',
- width : '100%',
- height : '100%',
- backgroundColor: '#000',
- zIndex : 10000,
- opacity : 0.6,
- display : 'none',
- left : 0,
- top : 0
- }
- },
- style : function() {
-
- this.$bar.css({
- overflow : 'hidden',
- background: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAoCAQAAAClM0ndAAAAhklEQVR4AdXO0QrCMBBE0bttkk38/w8WRERpdyjzVOc+HxhIHqJGMQcFFkpYRQotLLSw0IJ5aBdovruMYDA/kT8plF9ZKLFQcgF18hDj1SbQOMlCA4kao0iiXmah7qBWPdxpohsgVZyj7e5I9KcID+EhiDI5gxBYKLBQYKHAQoGFAoEks/YEGHYKB7hFxf0AAAAASUVORK5CYII=') repeat-x scroll left top #fff"
- });
-
- this.$message.css({
- fontSize : '13px',
- lineHeight: '16px',
- textAlign : 'center',
- padding : '8px 10px 9px',
- width : 'auto',
- position : 'relative'
- });
-
- this.$closeButton.css({
- position : 'absolute',
- top : 4, right: 4,
- width : 10, height: 10,
- background: "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAxUlEQVR4AR3MPUoDURSA0e++uSkkOxC3IAOWNtaCIDaChfgXBMEZbQRByxCwk+BasgQRZLSYoLgDQbARxry8nyumPcVRKDfd0Aa8AsgDv1zp6pYd5jWOwhvebRTbzNNEw5BSsIpsj/kurQBnmk7sIFcCF5yyZPDRG6trQhujXYosaFoc+2f1MJ89uc76IND6F9BvlXUdpb6xwD2+4q3me3bysiHvtLYrUJto7PD/ve7LNHxSg/woN2kSz4txasBdhyiz3ugPGetTjm3XRokAAAAASUVORK5CYII=)",
- display : 'none',
- cursor : 'pointer'
- });
-
- this.$buttons.css({
- padding : 5,
- textAlign : 'right',
- borderTop : '1px solid #ccc',
- backgroundColor: '#fff'
- });
-
- this.$buttons.find('button').css({
- marginLeft: 5
- });
-
- this.$buttons.find('button:first').css({
- marginLeft: 0
- });
-
- this.$bar.on({
- mouseenter: function() {
- $(this).find('.noty_close').stop().fadeTo('normal', 1);
- },
- mouseleave: function() {
- $(this).find('.noty_close').stop().fadeTo('normal', 0);
- }
- });
-
- switch(this.options.layout.name) {
- case 'top':
- this.$bar.css({
- borderRadius: '0px 0px 5px 5px',
- borderBottom: '2px solid #eee',
- borderLeft : '2px solid #eee',
- borderRight : '2px solid #eee',
- boxShadow : "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- case 'topCenter':
- case 'center':
- case 'bottomCenter':
- case 'inline':
- this.$bar.css({
- borderRadius: '5px',
- border : '1px solid #eee',
- boxShadow : "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- this.$message.css({fontSize: '13px', textAlign: 'center'});
- break;
- case 'topLeft':
- case 'topRight':
- case 'bottomLeft':
- case 'bottomRight':
- case 'centerLeft':
- case 'centerRight':
- this.$bar.css({
- borderRadius: '5px',
- border : '1px solid #eee',
- boxShadow : "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- this.$message.css({fontSize: '13px', textAlign: 'left'});
- break;
- case 'bottom':
- this.$bar.css({
- borderRadius: '5px 5px 0px 0px',
- borderTop : '2px solid #eee',
- borderLeft : '2px solid #eee',
- borderRight : '2px solid #eee',
- boxShadow : "0 -2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- default:
- this.$bar.css({
- border : '2px solid #eee',
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)"
- });
- break;
- }
-
- switch(this.options.type) {
- case 'alert':
- case 'notification':
- this.$bar.css({backgroundColor: '#FFF', borderColor: '#CCC', color: '#444'});
- break;
- case 'warning':
- this.$bar.css({backgroundColor: '#FFEAA8', borderColor: '#FFC237', color: '#826200'});
- this.$buttons.css({borderTop: '1px solid #FFC237'});
- break;
- case 'error':
- this.$bar.css({backgroundColor: 'red', borderColor: 'darkred', color: '#FFF'});
- this.$message.css({fontWeight: 'bold'});
- this.$buttons.css({borderTop: '1px solid darkred'});
- break;
- case 'information':
- this.$bar.css({backgroundColor: '#57B7E2', borderColor: '#0B90C4', color: '#FFF'});
- this.$buttons.css({borderTop: '1px solid #0B90C4'});
- break;
- case 'success':
- this.$bar.css({backgroundColor: 'lightgreen', borderColor: '#50C24E', color: 'darkgreen'});
- this.$buttons.css({borderTop: '1px solid #50C24E'});
- break;
- default:
- this.$bar.css({backgroundColor: '#FFF', borderColor: '#CCC', color: '#444'});
- break;
- }
- },
- callback: {
- onShow : function() {
- $.noty.themes.defaultTheme.helpers.borderFix.apply(this);
- },
- onClose: function() {
- $.noty.themes.defaultTheme.helpers.borderFix.apply(this);
- }
- }
-};