PluginProbe ʕ •ᴥ•ʔ
PiWeb Delivery & Pickup Date Time for WooCommerce / 3.0.49.70
PiWeb Delivery & Pickup Date Time for WooCommerce v3.0.49.70
3.0.63 3.0.62 3.0.61 3.0.60 3.0.49.49 3.0.49.6 3.0.49.60 3.0.49.61 3.0.49.62 3.0.49.63 3.0.49.64 3.0.49.66 3.0.49.67 3.0.49.69 3.0.49.7 3.0.49.70 3.0.49.72 3.0.49.73 3.0.49.74 3.0.49.76 3.0.49.77 3.0.49.79 3.0.49.9 3.0.49.90 3.0.49.91 3.0.49.92 3.0.49.93 3.0.49.94 3.0.49.96 3.0.49.97 3.0.49.99 trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 2.9.17 3.0.47 3.0.49 3.0.49.1 3.0.49.10 3.0.49.11 3.0.49.12 3.0.49.13 3.0.49.16 3.0.49.17 3.0.49.19 3.0.49.2 3.0.49.20 3.0.49.21 3.0.49.22 3.0.49.23 3.0.49.24 3.0.49.26 3.0.49.27 3.0.49.29 3.0.49.3 3.0.49.30 3.0.49.31 3.0.49.32 3.0.49.33 3.0.49.34 3.0.49.36 3.0.49.37 3.0.49.39 3.0.49.4 3.0.49.40 3.0.49.41 3.0.49.42 3.0.49.43 3.0.49.44 3.0.49.46 3.0.49.47
pi-woocommerce-order-date-time-and-type / admin / js / pisol-quick-save.js
pi-woocommerce-order-date-time-and-type / admin / js Last commit date
custom.js 8 months ago jquery.timepicker.min.js 8 months ago pi-order-page.js 8 months ago pi-woocommerce-order-date-time-and-type-pro-admin.js 8 months ago pisol-quick-save.js 8 months ago
pisol-quick-save.js
47 lines
1 /**
2 * v1.0.2
3 */
4 (function ($) {
5 'use strict';
6
7 /**
8 * Add class exclude-quick-save to the form you want to exclude from quick save
9 */
10 function quickSaveButton() {
11 this.init = function () {
12 this.form = jQuery('form[action="options.php"]').not('.exclude-quick-save');
13 this.addButton();
14 this.onClick();
15 }
16
17 this.addButton = function () {
18 if (this.form.length == 1) {
19 var button = jQuery('<button type="submit" id="pisol-quick-save" class="btn btn-danger btn-lg">Save Changes</button>').css({
20 'position': 'fixed',
21 'top': '50%',
22 'right': '-75px',
23 'z-index': '100000000000',
24 'transform': 'rotate(-90deg)',
25 'border-color': '#FFFFFF',
26 'width': '190px'
27 });
28 this.form.append(button);
29 }
30 }
31
32 this.onClick = function () {
33 var parent = this;
34 jQuery(document).on('click', '#pisol-quick-save', function (e) {
35 parent.form.trigger('submit');
36 jQuery(this).text('Saving....');
37 });
38 }
39
40 }
41
42 jQuery(function ($) {
43 var quickSaveButtonObj = new quickSaveButton();
44 quickSaveButtonObj.init();
45 });
46
47 })(jQuery);