[Plugin: jQuery Notify] Delay and option override
-
Hello, this plugin is great and exactly what I was trying to find.
However, I ran into a couple “issues”.
First off, using the template code, it wasn’t letting me change any settings such as style. I found in the code that it always just uses $options[‘style’], etc and doesn’t take into account the variables being passed. I modified that code to check like
$style = isset($style) ? $style : $options['style'];
for each option and then calling template_tag like
$jquery_notification->template_tag($content, $style, $speed, $delay);
Also, the box would never automatically hide after the set delay ( even after modifying the above to use my passed values ). Maybe a jQuery version issue or something? Not sure, but I added this to the document.ready code in script.js
setTimeout(function(){ $('.jqnm_message').animate({top: -$('.jqnm_message').outerHeight()}, parseInt(jqnm_script_vars.speed)); },jqnm_script_vars.delay);
Again, thanks for making this and except for the above minor issues, at least for me, works like a charm. Hope the above helps anyone else.
- The topic ‘[Plugin: jQuery Notify] Delay and option override’ is closed to new replies.