Closed (fixed)
Project:
Dismiss
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2015 at 01:15 UTC
Updated:
14 Nov 2015 at 11:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ruplInteresting idea and not too disruptive. If you start a patch I'm happy to review it.
Comment #2
johnhanley commentedHere's a patch to add a fadeout behavior for status messages. Note: warning and error messages should persist as they respectively provide information to or require action by the user.
FILES CHANGED
dismiss.module - define constant and pass fadeout value to dismiss.js
dismiss.admin.inc - configuration field to set duration of or to disable timer
js/dismiss.js - accept fadeout setting passed from dismiss.module; conditional value check to initiate fadeout timer
FILES ADDED
dismiss.install - clean-up system variables upon uninstall
The latter is considered best practice and thrown in as a bonus. Rename file to dismiss.install (as issue queue does not accept the .install extension.)
Comments & feedback welcome.
Comment #4
ruplHey sorry the delay in reviewing, thanks for the patch! The only change I made was to make the default timeout be 0, so that the module's default behavior does not change for existing users. Also thanks for the install file. Cheers!
Comment #5
johnhanley commentedCool--happy to contribute.
Default timer value of 0 makes sense.
You might want to update the project page description to include this new functionality.
Comment #7
johnhanley commentedI still suggest you update the project page and mention the auto hide feature.
Comment #8
ruplok it's been added