From f36a056bc5a6306f165699a8e9df8909b289e42d Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Wed, 11 Mar 2020 18:18:18 +0530 Subject: [PATCH 01/19] Add files via upload --- custom-notify.js | 71 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 custom-notify.js diff --git a/custom-notify.js b/custom-notify.js new file mode 100644 index 0000000..79c2cc7 --- /dev/null +++ b/custom-notify.js @@ -0,0 +1,71 @@ +// $(document).ready(function () { + $.fn.cbn = function (var_message, var_type = 'info', update = 'no') { + // alert('a'); + var var_title = ''; + var var_icon = ''; + var val_showProgressbar = false; + var val_allow_dismiss = true; + + if (var_type == 'success') { + var_title = 'Success!! '; + var_icon = 'fa fa-check-circle-o'; + + } else if (var_type == 'danger') { + var_title = 'Error!! '; + var_icon = 'fa fa-exclamation-circle'; + + } else if (var_type == 'warning') { + var_title = 'Warning!! '; + var_icon = 'fa fa-exclamation-circle'; + } else if (var_type == 'loading') { + var_type = 'info'; + var_title = 'Loading!! '; + var_icon = 'fa fa-refresh fa-spin fa-fw'; + val_allow_dismiss: false, + val_showProgressbar = true; + } else { + var_type = 'info'; + var_title = 'Message!! '; + var_icon = 'fa fa-info-circle'; + } + + if(update=='no') { + window.notify = $.notify({ + // obj.message + // options + icon: var_icon, + title: var_title, + message: var_message, + /* + url: 'https://github.com/mouse0270/bootstrap-notify', + target: '_blank' + */ + }, + { + /* allow_dismiss: false, */ + type: var_type, + z_index: 6001, + showProgressbar: val_showProgressbar, + allow_dismiss: val_allow_dismiss, + /* + placement: { + from: 'top', + align: 'right' + }, + delay: 3000, + timer: 2000, + animate: { + enter: 'animated fadeInDown', + exit: 'animated fadeOutUp' + }, + + */ + }); + } + else { + window.notify.update({type: var_type, icon: var_icon, title: var_title, message: var_message,}); + } + }; + +// }); + From dfac81025280334ba8669dc4826e90007e1a708a Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Sun, 22 Mar 2020 11:42:48 +0530 Subject: [PATCH 02/19] animate --- custom-notify.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom-notify.js b/custom-notify.js index 79c2cc7..6dc9f88 100644 --- a/custom-notify.js +++ b/custom-notify.js @@ -54,12 +54,11 @@ }, delay: 3000, timer: 2000, + */ animate: { enter: 'animated fadeInDown', exit: 'animated fadeOutUp' }, - - */ }); } else { From 33ff8e511f90a605406cfc4b2244329d4e588bd8 Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Sun, 22 Mar 2020 12:45:37 +0530 Subject: [PATCH 03/19] Update custom-notify.js --- custom-notify.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom-notify.js b/custom-notify.js index 6dc9f88..0c9500b 100644 --- a/custom-notify.js +++ b/custom-notify.js @@ -56,9 +56,10 @@ timer: 2000, */ animate: { - enter: 'animated fadeInDown', - exit: 'animated fadeOutUp' + enter: 'animated bounceInDown', + exit: 'animated bounceOutUp' }, + }); } else { From 05e74e63f92ba5a0951fb49e62ee1a0195488b3a Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Sun, 22 Mar 2020 13:11:38 +0530 Subject: [PATCH 04/19] animate fixed --- custom-notify.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/custom-notify.js b/custom-notify.js index 0c9500b..14c12ce 100644 --- a/custom-notify.js +++ b/custom-notify.js @@ -1,3 +1,7 @@ +/* + +*/ + // $(document).ready(function () { $.fn.cbn = function (var_message, var_type = 'info', update = 'no') { // alert('a'); @@ -54,12 +58,11 @@ }, delay: 3000, timer: 2000, - */ animate: { - enter: 'animated bounceInDown', - exit: 'animated bounceOutUp' + enter: 'animated fadeInDown', + exit: 'animated fadeOutUp' }, - + */ }); } else { From 60e1fbfe5d3f908a3b9b2cc0f8a787fc74076090 Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Wed, 25 Mar 2020 16:29:10 +0530 Subject: [PATCH 05/19] var_type == 'wait' --- custom-notify.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/custom-notify.js b/custom-notify.js index 14c12ce..715269e 100644 --- a/custom-notify.js +++ b/custom-notify.js @@ -27,6 +27,12 @@ var_icon = 'fa fa-refresh fa-spin fa-fw'; val_allow_dismiss: false, val_showProgressbar = true; + } else if (var_type == 'wait') { + var_type = 'info'; + var_title = 'Loading!! '; + var_icon = 'fa fa-refresh fa-spin fa-fw'; + val_allow_dismiss: false, + // val_showProgressbar = true; } else { var_type = 'info'; var_title = 'Message!! '; From b5c4dc638936c0ff3f708883a731b957b8b2defe Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Wed, 25 Mar 2020 16:34:51 +0530 Subject: [PATCH 06/19] error fixed line 28 and 34 : will be = end of line , will be ; --- custom-notify.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom-notify.js b/custom-notify.js index 715269e..5e5b6b9 100644 --- a/custom-notify.js +++ b/custom-notify.js @@ -25,14 +25,14 @@ var_type = 'info'; var_title = 'Loading!! '; var_icon = 'fa fa-refresh fa-spin fa-fw'; - val_allow_dismiss: false, + val_allow_dismiss= false; val_showProgressbar = true; } else if (var_type == 'wait') { var_type = 'info'; var_title = 'Loading!! '; var_icon = 'fa fa-refresh fa-spin fa-fw'; - val_allow_dismiss: false, - // val_showProgressbar = true; + val_allow_dismiss= false; + /* val_showProgressbar = true; */ } else { var_type = 'info'; var_title = 'Message!! '; From 1ecc0adf3e55ae9ec7593beeb042c723ff3077cb Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Wed, 25 Mar 2020 16:37:55 +0530 Subject: [PATCH 07/19] fa-spin removed --- custom-notify.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom-notify.js b/custom-notify.js index 5e5b6b9..43ac494 100644 --- a/custom-notify.js +++ b/custom-notify.js @@ -24,13 +24,13 @@ } else if (var_type == 'loading') { var_type = 'info'; var_title = 'Loading!! '; - var_icon = 'fa fa-refresh fa-spin fa-fw'; + var_icon = 'fa fa-refresh fa-fw'; val_allow_dismiss= false; val_showProgressbar = true; } else if (var_type == 'wait') { var_type = 'info'; - var_title = 'Loading!! '; - var_icon = 'fa fa-refresh fa-spin fa-fw'; + var_title = 'Wait!! '; + var_icon = 'fa fa-refresh fa-fw'; val_allow_dismiss= false; /* val_showProgressbar = true; */ } else { From d811b3d05eb25d2fe7ac9e3432e97809cdc12f1a Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Wed, 25 Mar 2020 16:52:02 +0530 Subject: [PATCH 08/19] fas added for Font Awesome 5 --- custom-notify.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/custom-notify.js b/custom-notify.js index 43ac494..b28799d 100644 --- a/custom-notify.js +++ b/custom-notify.js @@ -12,31 +12,31 @@ if (var_type == 'success') { var_title = 'Success!! '; - var_icon = 'fa fa-check-circle-o'; + var_icon = 'fa fas fa-check-circle-o'; } else if (var_type == 'danger') { var_title = 'Error!! '; - var_icon = 'fa fa-exclamation-circle'; + var_icon = 'fa fas fa-exclamation-circle'; } else if (var_type == 'warning') { var_title = 'Warning!! '; - var_icon = 'fa fa-exclamation-circle'; + var_icon = 'fa fas fa-exclamation-circle'; } else if (var_type == 'loading') { var_type = 'info'; var_title = 'Loading!! '; - var_icon = 'fa fa-refresh fa-fw'; + var_icon = 'fa fas fa-refresh fa-spin fa-fw'; val_allow_dismiss= false; val_showProgressbar = true; } else if (var_type == 'wait') { var_type = 'info'; var_title = 'Wait!! '; - var_icon = 'fa fa-refresh fa-fw'; + var_icon = 'fa fas fa-refresh fa-spin fa-fw'; val_allow_dismiss= false; /* val_showProgressbar = true; */ } else { var_type = 'info'; var_title = 'Message!! '; - var_icon = 'fa fa-info-circle'; + var_icon = 'fa fas fa-info-circle'; } if(update=='no') { From 5f54e901a2abfbf5f8e8759fb3f0cdcf1f80c722 Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Wed, 25 Mar 2020 17:02:05 +0530 Subject: [PATCH 09/19] Create custom-notify-5.0.js --- custom-notify-5.0.js | 80 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 custom-notify-5.0.js diff --git a/custom-notify-5.0.js b/custom-notify-5.0.js new file mode 100644 index 0000000..55d0a66 --- /dev/null +++ b/custom-notify-5.0.js @@ -0,0 +1,80 @@ +/* + +*/ + +// $(document).ready(function () { + $.fn.cbn = function (var_message, var_type = 'info', update = 'no') { + // alert('a'); + var var_title = ''; + var var_icon = ''; + var val_showProgressbar = false; + var val_allow_dismiss = true; + + if (var_type == 'success') { + var_title = 'Success!! '; + var_icon = 'fa fas fa-check-circle-o'; + + } else if (var_type == 'danger') { + var_title = 'Error!! '; + var_icon = 'fas fa-exclamation-circle'; + + } else if (var_type == 'warning') { + var_title = 'Warning!! '; + var_icon = 'fas fa-exclamation-circle'; + } else if (var_type == 'loading') { + var_type = 'info'; + var_title = 'Loading!! '; + var_icon = 'fas fa-refresh fa-spin fa-fw'; + val_allow_dismiss= false; + val_showProgressbar = true; + } else if (var_type == 'wait') { + var_type = 'info'; + var_title = 'Wait!! '; + var_icon = 'fas fa-refresh fa-spin fa-fw'; + val_allow_dismiss= false; + /* val_showProgressbar = true; */ + } else { + var_type = 'info'; + var_title = 'Message!! '; + var_icon = 'fas fa-info-circle'; + } + + if(update=='no') { + window.notify = $.notify({ + // obj.message + // options + icon: var_icon, + title: var_title, + message: var_message, + /* + url: 'https://github.com/mouse0270/bootstrap-notify', + target: '_blank' + */ + }, + { + /* allow_dismiss: false, */ + type: var_type, + z_index: 6001, + showProgressbar: val_showProgressbar, + allow_dismiss: val_allow_dismiss, + /* + placement: { + from: 'top', + align: 'right' + }, + delay: 3000, + timer: 2000, + animate: { + enter: 'animated fadeInDown', + exit: 'animated fadeOutUp' + }, + */ + }); + } + else { + window.notify.update({type: var_type, icon: var_icon, title: var_title, message: var_message,}); + } + }; + +// }); + From 2153f8298a8a5ac86bfa4404bc41784152edfe35 Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Wed, 25 Mar 2020 17:04:17 +0530 Subject: [PATCH 10/19] remove fas --- custom-notify.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/custom-notify.js b/custom-notify.js index b28799d..684a9e8 100644 --- a/custom-notify.js +++ b/custom-notify.js @@ -12,31 +12,31 @@ if (var_type == 'success') { var_title = 'Success!! '; - var_icon = 'fa fas fa-check-circle-o'; + var_icon = 'fa fa-check-circle-o'; } else if (var_type == 'danger') { var_title = 'Error!! '; - var_icon = 'fa fas fa-exclamation-circle'; + var_icon = 'fa fa-exclamation-circle'; } else if (var_type == 'warning') { var_title = 'Warning!! '; - var_icon = 'fa fas fa-exclamation-circle'; + var_icon = 'fa fa-exclamation-circle'; } else if (var_type == 'loading') { var_type = 'info'; var_title = 'Loading!! '; - var_icon = 'fa fas fa-refresh fa-spin fa-fw'; + var_icon = 'fa fa-refresh fa-spin fa-fw'; val_allow_dismiss= false; val_showProgressbar = true; } else if (var_type == 'wait') { var_type = 'info'; var_title = 'Wait!! '; - var_icon = 'fa fas fa-refresh fa-spin fa-fw'; + var_icon = 'fa fa-refresh fa-spin fa-fw'; val_allow_dismiss= false; /* val_showProgressbar = true; */ } else { var_type = 'info'; var_title = 'Message!! '; - var_icon = 'fa fas fa-info-circle'; + var_icon = 'fa fa-info-circle'; } if(update=='no') { From 4df95dcf3dccfae5efdb85f36e23d230140121ad Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Wed, 25 Mar 2020 17:14:29 +0530 Subject: [PATCH 11/19] updated icon for bootstrap 5 --- custom-notify-5.0.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom-notify-5.0.js b/custom-notify-5.0.js index 55d0a66..01c34a9 100644 --- a/custom-notify-5.0.js +++ b/custom-notify-5.0.js @@ -12,7 +12,7 @@ if (var_type == 'success') { var_title = 'Success!! '; - var_icon = 'fa fas fa-check-circle-o'; + var_icon = 'fas fa-check-circle'; } else if (var_type == 'danger') { var_title = 'Error!! '; @@ -24,13 +24,13 @@ } else if (var_type == 'loading') { var_type = 'info'; var_title = 'Loading!! '; - var_icon = 'fas fa-refresh fa-spin fa-fw'; + var_icon = 'fas fa-stroopwafel fa-spin'; val_allow_dismiss= false; val_showProgressbar = true; } else if (var_type == 'wait') { var_type = 'info'; var_title = 'Wait!! '; - var_icon = 'fas fa-refresh fa-spin fa-fw'; + var_icon = 'fas fa-stroopwafel fa-spin'; val_allow_dismiss= false; /* val_showProgressbar = true; */ } else { From a88427c3afa4b010d1f8f35d93d367feaf9fb3b4 Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Wed, 25 Mar 2020 17:17:28 +0530 Subject: [PATCH 12/19] fa-spinner --- custom-notify-5.0.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom-notify-5.0.js b/custom-notify-5.0.js index 01c34a9..c91a051 100644 --- a/custom-notify-5.0.js +++ b/custom-notify-5.0.js @@ -24,13 +24,13 @@ } else if (var_type == 'loading') { var_type = 'info'; var_title = 'Loading!! '; - var_icon = 'fas fa-stroopwafel fa-spin'; + var_icon = 'fas fa-spinner fa-spin'; val_allow_dismiss= false; val_showProgressbar = true; } else if (var_type == 'wait') { var_type = 'info'; var_title = 'Wait!! '; - var_icon = 'fas fa-stroopwafel fa-spin'; + var_icon = 'fas fa-spinner fa-spin'; val_allow_dismiss= false; /* val_showProgressbar = true; */ } else { From bd2dc9709c7327c8e6a5aa1972b6fbc973a9eaac Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Sat, 2 May 2020 08:24:34 +0530 Subject: [PATCH 13/19] Update custom-notify-5.0.js var_delay --- custom-notify-5.0.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/custom-notify-5.0.js b/custom-notify-5.0.js index c91a051..1c01fe7 100644 --- a/custom-notify-5.0.js +++ b/custom-notify-5.0.js @@ -3,7 +3,7 @@ */ // $(document).ready(function () { - $.fn.cbn = function (var_message, var_type = 'info', update = 'no') { + $.fn.cbn = function (var_message, var_type = 'info', update = 'no', var_delay=5000) { // alert('a'); var var_title = ''; var var_icon = ''; @@ -26,13 +26,15 @@ var_title = 'Loading!! '; var_icon = 'fas fa-spinner fa-spin'; val_allow_dismiss= false; - val_showProgressbar = true; + /* val_showProgressbar = true; */ + var_delay = 0; } else if (var_type == 'wait') { var_type = 'info'; var_title = 'Wait!! '; var_icon = 'fas fa-spinner fa-spin'; val_allow_dismiss= false; - /* val_showProgressbar = true; */ + /* val_showProgressbar = true; */ + var_delay = 0; } else { var_type = 'info'; var_title = 'Message!! '; @@ -57,6 +59,7 @@ z_index: 6001, showProgressbar: val_showProgressbar, allow_dismiss: val_allow_dismiss, + delay: var_delay, /* placement: { from: 'top', @@ -72,7 +75,7 @@ }); } else { - window.notify.update({type: var_type, icon: var_icon, title: var_title, message: var_message,}); + window.notify.update({type: var_type, icon: var_icon, title: var_title, message: var_message, delay:var_delay}); } }; From fa89e66623f8eb8a35f2397868ec9a21664b5f7f Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Sat, 2 May 2020 10:40:45 +0530 Subject: [PATCH 14/19] Update custom-notify-5.0.js var_update --- custom-notify-5.0.js | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/custom-notify-5.0.js b/custom-notify-5.0.js index 1c01fe7..e8bdb74 100644 --- a/custom-notify-5.0.js +++ b/custom-notify-5.0.js @@ -3,7 +3,7 @@ */ // $(document).ready(function () { - $.fn.cbn = function (var_message, var_type = 'info', update = 'no', var_delay=5000) { + $.fn.cbn = function (var_message, var_type = 'info', var_update = 'no', var_delay=5000) { // alert('a'); var var_title = ''; var var_icon = ''; @@ -25,14 +25,14 @@ var_type = 'info'; var_title = 'Loading!! '; var_icon = 'fas fa-spinner fa-spin'; - val_allow_dismiss= false; + /* val_allow_dismiss= false; */ /* val_showProgressbar = true; */ var_delay = 0; } else if (var_type == 'wait') { var_type = 'info'; var_title = 'Wait!! '; var_icon = 'fas fa-spinner fa-spin'; - val_allow_dismiss= false; + /* val_allow_dismiss= false; */ /* val_showProgressbar = true; */ var_delay = 0; } else { @@ -41,8 +41,8 @@ var_icon = 'fas fa-info-circle'; } - if(update=='no') { - window.notify = $.notify({ + if(var_update=='no') { + return window.notify = $.notify({ // obj.message // options icon: var_icon, @@ -75,9 +75,18 @@ }); } else { - window.notify.update({type: var_type, icon: var_icon, title: var_title, message: var_message, delay:var_delay}); + if(typeof(var_update) != 'object') { + var_update = window.notify; + } + + var_update.update({type: var_type, icon: var_icon, title: var_title, message: var_message}); + + setTimeout(function() { + // $.notifyClose(); + var_update.close(); + }, var_delay); + } }; // }); - From dbe308fa5fcb655c2eabfaf9d9c45488ad4a757b Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Sun, 3 May 2020 06:50:01 +0530 Subject: [PATCH 15/19] Update custom-notify.js delay: var_delay, update -- bug fixed --- custom-notify.js | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/custom-notify.js b/custom-notify.js index 684a9e8..b38f5eb 100644 --- a/custom-notify.js +++ b/custom-notify.js @@ -3,7 +3,7 @@ */ // $(document).ready(function () { - $.fn.cbn = function (var_message, var_type = 'info', update = 'no') { + $.fn.cbn = function (var_message, var_type = 'info', var_update = 'no', var_delay=5000) { // alert('a'); var var_title = ''; var var_icon = ''; @@ -26,21 +26,23 @@ var_title = 'Loading!! '; var_icon = 'fa fa-refresh fa-spin fa-fw'; val_allow_dismiss= false; - val_showProgressbar = true; + /* val_showProgressbar = true; */ + var_delay = 0; } else if (var_type == 'wait') { var_type = 'info'; var_title = 'Wait!! '; var_icon = 'fa fa-refresh fa-spin fa-fw'; - val_allow_dismiss= false; + /* val_allow_dismiss= false; */ /* val_showProgressbar = true; */ + var_delay = 0; } else { var_type = 'info'; var_title = 'Message!! '; var_icon = 'fa fa-info-circle'; } - if(update=='no') { - window.notify = $.notify({ + if(var_update=='no') { + return window.notify = $.notify({ // obj.message // options icon: var_icon, @@ -57,12 +59,12 @@ z_index: 6001, showProgressbar: val_showProgressbar, allow_dismiss: val_allow_dismiss, + delay: var_delay, /* placement: { from: 'top', align: 'right' }, - delay: 3000, timer: 2000, animate: { enter: 'animated fadeInDown', @@ -72,7 +74,14 @@ }); } else { - window.notify.update({type: var_type, icon: var_icon, title: var_title, message: var_message,}); + if(typeof(var_update) != 'object') { + var_update = window.notify; + } + + var_update.update({type: var_type, icon: var_icon, title: var_title, message: var_message,}); + setTimeout(function() { + var_update.close(); + }, var_delay); } }; From 6a088658e32e5bf9616db3049a195f37ceb7169a Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Thu, 16 Nov 2023 16:33:59 +0530 Subject: [PATCH 16/19] Update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 3c3629e..944c283 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +.idea/ From 2690dc171b8bb7d1109498f45c8f1c7fea7c156c Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Thu, 16 Nov 2023 16:34:08 +0530 Subject: [PATCH 17/19] cbn_placement --- custom-notify-5.0.js | 13 +++++++++++++ test.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 test.php diff --git a/custom-notify-5.0.js b/custom-notify-5.0.js index e8bdb74..60b72b6 100644 --- a/custom-notify-5.0.js +++ b/custom-notify-5.0.js @@ -9,6 +9,10 @@ var var_icon = ''; var val_showProgressbar = false; var val_allow_dismiss = true; + let val_placement = { + from: 'top', + align: 'right' + }; if (var_type == 'success') { var_title = 'Success!! '; @@ -42,6 +46,14 @@ } if(var_update=='no') { + + if (typeof window.cbn_placement === 'undefined') { + // variable is undefined + } + else { + val_placement = window.cbn_placement; + } + return window.notify = $.notify({ // obj.message // options @@ -60,6 +72,7 @@ showProgressbar: val_showProgressbar, allow_dismiss: val_allow_dismiss, delay: var_delay, + placement : val_placement, /* placement: { from: 'top', diff --git a/test.php b/test.php new file mode 100644 index 0000000..0832357 --- /dev/null +++ b/test.php @@ -0,0 +1,28 @@ + + + + + Title + + + + + + + + + + + + + + + + \ No newline at end of file From 8506aae34c009ba66293a91c8045fbddab75fff2 Mon Sep 17 00:00:00 2001 From: MiLaN Date: Sat, 25 Nov 2023 15:01:22 +0530 Subject: [PATCH 18/19] Update bootstrap-notify.js -- close button design fixed for bootstrap 5 --- bootstrap-notify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-notify.js b/bootstrap-notify.js index d97e4c0..dcc91c6 100644 --- a/bootstrap-notify.js +++ b/bootstrap-notify.js @@ -50,7 +50,7 @@ onClosed: null, onClick: null, icon_type: 'class', - template: '' + template: '' }; String.format = function () { From c014d66e93382cb90d3abda4ef5649b0328caf0f Mon Sep 17 00:00:00 2001 From: milan-sahana Date: Mon, 8 Jan 2024 17:53:19 +0530 Subject: [PATCH 19/19] Update custom-notify.js -- cbn_placement --- custom-notify.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/custom-notify.js b/custom-notify.js index b38f5eb..f200f06 100644 --- a/custom-notify.js +++ b/custom-notify.js @@ -9,6 +9,10 @@ var var_icon = ''; var val_showProgressbar = false; var val_allow_dismiss = true; + let val_placement = { + from: 'top', + align: 'right' + }; if (var_type == 'success') { var_title = 'Success!! '; @@ -42,6 +46,13 @@ } if(var_update=='no') { + if (typeof window.cbn_placement === 'undefined') { + // variable is undefined + } + else { + val_placement = window.cbn_placement; + } + return window.notify = $.notify({ // obj.message // options @@ -60,6 +71,7 @@ showProgressbar: val_showProgressbar, allow_dismiss: val_allow_dismiss, delay: var_delay, + placement : val_placement, /* placement: { from: 'top',