IfnotFr / PopConfirm

A simple action confirmation plugin for jQuery based on Twitter Bootstrap Popover

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Title option should override title attribute

atxulo opened this issue · comments

When the object that fires the confirmation popup has a 'title' attribute, it's shown instead of the title option used to open popConfirm.

For example, this button

<button class="btn btn-success popconfirm_full" data-toggle='confirmation' id="important_action" title="Default title">Full featured</button>

And this function:

$("[data-toggle='confirmation']").popConfirm({ title: "Really ?", content: "I have warned you !", placement: "bottom" // (top, right, bottom, left) });

Shoud show a confirmation box with "Really?" as the title, but it shows "Default title"

Demo: http://jsfiddle.net/ereth7y8/1/