$dialog = $("#dialog-message").dialog({ modal: true, autoOpen: false, buttons: { Ok: function () { $(this).dialog("close"); } } });$('[data-action="show"]').click(function () { //Change title $dialog.dialog('option', 'title', $(this).data('product')); //Open dialog $dialog.dialog('open'); return false; });
No comments:
Post a Comment