Title option should override title attribute
atxulo opened this issue · comments
atxulo commented
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"