codemirror
4 years ago
jquery-tiptip
5 years ago
select2
5 years ago
how-to.js
8 years ago
how-to.min.js
6 years ago
jquery.colorbox.js
8 years ago
jquery.colorbox.min.js
6 years ago
metabox.js
4 years ago
metabox.min.js
4 years ago
multisite-updater.js
2 years ago
multisite-updater.min.js
6 years ago
welcome-modal.js
3 years ago
welcome-modal.min.js
3 years ago
wp-pages.js
3 years ago
wp-pages.min.js
3 years ago
yit-cpt-unlimited.js
6 years ago
yit-cpt-unlimited.min.js
6 years ago
yit-plugin-panel.js
1 year ago
yit-plugin-panel.min.js
1 year ago
yit-wp-pointer.js
5 years ago
yit-wp-pointer.min.js
5 years ago
yith-bh-onboarding.js
3 years ago
yith-bh-onboarding.min.js
3 years ago
yith-colorpicker.min.js
5 years ago
yith-dashboard.js
7 years ago
yith-dashboard.min.js
6 years ago
yith-date-format.js
5 years ago
yith-date-format.min.js
5 years ago
yith-enhanced-select-wc-2.6.js
5 years ago
yith-enhanced-select-wc-2.6.min.js
5 years ago
yith-enhanced-select.js
2 years ago
yith-enhanced-select.min.js
2 years ago
yith-fields.js
2 years ago
yith-fields.min.js
2 years ago
yith-promo.js
7 years ago
yith-promo.min.js
6 years ago
yith-system-info.js
2 years ago
yith-system-info.min.js
2 years ago
yith-ui.js
1 year ago
yith-ui.min.js
1 year ago
yith-update-plugins.js
7 years ago
yith-update-plugins.min.js
6 years ago
yith-dashboard.js
47 lines
| 1 | (function ($) { |
| 2 | // bind a button or a link to open the dialog |
| 3 | $('.yith-last-changelog').click(function(e) { |
| 4 | e.preventDefault(); |
| 5 | var inlineId = $( this ).data( 'changelogid' ), |
| 6 | inlineModal = $('#' + inlineId), |
| 7 | plugininfo = $( this ).data( 'plugininfo' ), |
| 8 | b = {}, |
| 9 | close_function = function() { $( this ).dialog( "close" ); }; |
| 10 | |
| 11 | b[yith_dashboard.buttons.close] = close_function; |
| 12 | |
| 13 | // initalise the dialog |
| 14 | inlineModal.dialog({ |
| 15 | title: plugininfo, |
| 16 | dialogClass: 'wp-dialog', |
| 17 | autoOpen: false, |
| 18 | draggable: false, |
| 19 | width: 'auto', |
| 20 | modal: true, |
| 21 | resizable: false, |
| 22 | closeOnEscape: true, |
| 23 | position: { |
| 24 | my: "center", |
| 25 | at: "center", |
| 26 | of: window |
| 27 | }, |
| 28 | buttons: b, |
| 29 | show: { |
| 30 | effect: "blind", |
| 31 | duration: 1000 |
| 32 | }, |
| 33 | open: function () { |
| 34 | // close dialog by clicking the overlay behind it |
| 35 | $('.ui-widget-overlay').bind('click', function(){ |
| 36 | inlineModal.dialog('close'); |
| 37 | }) |
| 38 | }, |
| 39 | create: function () { |
| 40 | // style fix for WordPress admin |
| 41 | $('.ui-dialog-titlebar-close').addClass('ui-button'); |
| 42 | }, |
| 43 | }); |
| 44 | |
| 45 | inlineModal.dialog('open'); |
| 46 | }); |
| 47 | })(jQuery); |