pixel2 / jQuery-Easy-Confirm-Dialog-plugin

jQuery plugin that imitates the standard javascript confirm-action. But uses standard jquery dialog-module to show the message. Very simple integration, no callbacks needed. When added all other events will be put on hold and only executed on user confirmation.
http://projectshadowlight.org/jquery-easy-confirm-dialog/
25 stars 20 forks source link

No title, no dialog #2

Closed FaustXVI closed 13 years ago

FaustXVI commented 13 years ago

Hi, I encounter a issue on firefox v3.6.20 on ubuntu 10.10 : When I add a easyconfirm on a element with no title, the plugin crash and no dialog is shown.

I simply fix the bug by changing this line :

if ($target.attr('title').length > 0)

by this one

if ($target.attr('title') != null && $target.attr('title').length > 0)

My best,

pixel2 commented 13 years ago

Thank you for your feedback and sorry for my late replay. I have implemented the fix as you suggested.