Hi!
What about changing the modal windows with the (Pause) (Ok) buttons with 5 seconds countdown to a more dynamic notifications with colors.
There are tons of libraries which do the same):
https://alertifyjs.com/notifier.html
https://notifyjs.jpillora.com/
https://simple-notify.github.io/simple-notify/
Regards,
Change modal confirmation windows to alerts
Moderators: Developers, Moderators
- NetVicious
- Posts: 49
- Joined: Mon Oct 13, 2003 1:14 pm
- Location: Spain
Change modal confirmation windows to alerts
.. //\/ e t . \/ i c i o u s ..
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Change modal confirmation windows to alerts
I would suggest you make a suggestion via a pull request. This day in age, posting stuff like this is better on GitHub too. The third one I like as it's self documenting.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- NetVicious
- Posts: 49
- Joined: Mon Oct 13, 2003 1:14 pm
- Location: Spain
Re: Change modal confirmation windows to alerts
Hi!
Can you give some little help about which files I need to modify?
As example I will modify the /cacti/graph_templates.php?action=template_edit form
I see on that form one submit button with a JS event. Can you tell me on which JS file I can find the function it run when clicked?
I will need to change also the headers to add the JS library for the alert.
Regards,
Can you give some little help about which files I need to modify?
As example I will modify the /cacti/graph_templates.php?action=template_edit form
I see on that form one submit button with a JS event. Can you tell me on which JS file I can find the function it run when clicked?
I will need to change also the headers to add the JS library for the alert.
Regards,
.. //\/ e t . \/ i c i o u s ..
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Change modal confirmation windows to alerts
That's a big ask. Are you a developer? What is your primary language, if not English, how is your English?
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- NetVicious
- Posts: 49
- Joined: Mon Oct 13, 2003 1:14 pm
- Location: Spain
Re: Change modal confirmation windows to alerts
I know PHP and HTML/JS, but I'm not familiar on cacti code.
So I need a bit of help to find those elements (JS file where the click event of that form it's managed, and the php file where the HTML headers are written to add the <script of the JS I need to use the JS library for the notifications.
So I need a bit of help to find those elements (JS file where the click event of that form it's managed, and the php file where the HTML headers are written to add the <script of the JS I need to use the JS library for the notifications.
.. //\/ e t . \/ i c i o u s ..
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Change modal confirmation windows to alerts
Contact me directly at thewitness at cacti dot net.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Change modal confirmation windows to alerts
I have actually not seen this post but already implemented it as part of 1.3.x. The final design of it isn't set in stone yet, just wanted to get something out there. Success notifications should fade away on their own but failures and warnings remain so you can clear them manually.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 2 guests