Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.notify.addStyle('confirm', {
- html:
- "<div>" +
- "<div class='confirm_base'>" +
- "<div class='circuitid' data-notify-text='circuitid' />" +
- "<div class='title' data-notify-html='title'/>" +
- "<div class='buttons'>" +
- "<button class='no'>Cancel</button>" +
- "<button class='yes' data-notify-text='button'></button>" +
- "</div>" +
- "</div>" +
- "</div>",
- classes: {
- base: {
- "background-color": "#b6ff00"
- }
- }
- });
- $(document).on('click', '.notifyjs-confirm-base .no', function () {
- //programmatically trigger propogating hide event
- $(this).trigger('notify-hide');
- });
- $(document).on('click', '.notifyjs-confirm-base .yes', function () {
- //show button text
- $(this).trigger('notify-hide');
- action(circuitid);
- });
- $.notify({
- title: msg,
- button: "Confermo",
- circuitid: circuitid,
- }, {
- className: "info",
- style: 'confirm',
- autoHide: false,
- clickToHide: true,
- globalPosition: "top center"
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement