jquery-confirm
jquery-confirm copied to clipboard
Title Propoerty on Buttons
jquery-confirm version: v3.3.4
I'm submitting a ... (check one with "x") [ ] bug report [x ] feature request [ ] support request
Current behavior: Theyre is no way to add a title property to buttons
Expected behavior: On button mouseover, the title property is shown in a tooltip
Steps to reproduce:
Related code:
var button_element = $('<button type="button" class="btn"></button>')
.html(that.buttons[key].text)
.addClass(that.buttons[key].btnClass)
.prop('disabled', that.buttons[key].isDisabled)
.prop('title', that.buttons[key].title)
.css('display', that.buttons[key].isHidden ? 'none' : '')
.click(function(e){
e.preventDefault();
var res = that.buttons[key].action.apply(that, [that.buttons[key]]);
that.onAction.apply(that, [key, that.buttons[key]]);
that._stopCountDown();
if(typeof res === 'undefined' || res)
that.close();
});
Other information: just add the .prop('title', that.buttons[key].title) at line 697 of jquery-confirm.js
and a "title" property to the button
thanks a lot Roger