Closed (fixed)
Project:
jQuery Msg Alert
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2011 at 22:53 UTC
Updated:
19 Oct 2011 at 13:10 UTC
Is there a way to do that?
That way I if I'm testing something, upon refresh be told what the log says without toggling to another browser tab.
Thanks!
Comments
Comment #1
carvalhar commentedHi,
It's not possible with this module at this moment.
This module popus what is printed by drupal_set_message only. The Recent logs messages uses another function, watchdog, and doesn't print nothing at the page.
But this can be easily done. I liked the idea, but didn't test to implement it as a feature yet.
You'll need to add a hook to watchdog and print with drupal_set_mesaage the recent log message, something like:
Do you want to start it?
thanks,
carlos
Comment #2
SJourney commentedSorry for the lapse in response. Not sure where to start mate. I quite a newb at this.
Comment #3
carvalhar commentedno problem ;)
just add the code above at the end of jquery_msg_alert.module
Comment #4
carvalhar commentedok. solved.
You only need to add:
at the end of jquery_msg_alert.module
I'm adding it to a new release.
Comment #5
SJourney commentedWow, Great job!
Installed and testing.
There is one thing that I noticed that I was missing since installing this module; if there is an error that displays, it does so at the top of the page within a box. With module enabled, that is gone, and error appears in popup and then shortly disappears. How can one gain access to the error swiftly so that one could cut/paste it to d.o. for troubleshooting ?
Comment #6
carvalhar commentedeasy!
Access this module settings page. There are 3 types of drupal messages. Uncheck error and keep only status and warnings.
Or edit the plugin settings and avoid it to close the alert, disabling the checkbox 'close after time expire' (i don't remember the exact sentence) or you can increase the time to close.