/
var
/
www
/
vhosts
/
ihelp.ro
/
ajutam.ro
/
wp-content
/
plugins
/
woocommerce
/
assets
/
js
/
admin
/
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/woocommerce/assets/js/admin
mkdir
upload
Name
Size
Mode
Actions
api-keys.js
3986
0644
edit
dl
rm
api-keys.min.js
2268
0644
edit
dl
rm
backbone-modal.js
3543
0644
edit
dl
rm
backbone-modal.min.js
2214
0644
edit
dl
rm
marketplace-suggestions.js
15965
0644
edit
dl
rm
marketplace-suggestions.min.js
6311
0644
edit
dl
rm
meta-boxes-coupon.js
2075
0644
edit
dl
rm
meta-boxes-coupon.min.js
1219
0644
edit
dl
rm
meta-boxes-order.js
47963
0644
edit
dl
rm
meta-boxes-order.min.js
29991
0644
edit
dl
rm
meta-boxes-product-variation.js
34329
0644
edit
dl
rm
meta-boxes-product-variation.min.js
19168
0644
edit
dl
rm
meta-boxes-product.js
21319
0644
edit
dl
rm
meta-boxes-product.min.js
12654
0644
edit
dl
rm
meta-boxes.js
2387
0644
edit
dl
rm
meta-boxes.min.js
1598
0644
edit
dl
rm
network-orders.js
2394
0644
edit
dl
rm
network-orders.min.js
1265
0644
edit
dl
rm
product-ordering.js
2312
0644
edit
dl
rm
product-ordering.min.js
1516
0644
edit
dl
rm
quick-edit.js
6942
0644
edit
dl
rm
quick-edit.min.js
4508
0644
edit
dl
rm
reports.js
6461
0644
edit
dl
rm
reports.min.js
3248
0644
edit
dl
rm
settings-views-html-settings-tax.js
12219
0644
edit
dl
rm
settings-views-html-settings-tax.min.js
6126
0644
edit
dl
rm
settings.js
5593
0644
edit
dl
rm
settings.min.js
3698
0644
edit
dl
rm
system-status.js
3636
0644
edit
dl
rm
system-status.min.js
2014
0644
edit
dl
rm
term-ordering.js
4280
0644
edit
dl
rm
term-ordering.min.js
2251
0644
edit
dl
rm
users.js
3875
0644
edit
dl
rm
users.min.js
1917
0644
edit
dl
rm
wc-clipboard.js
869
0644
edit
dl
rm
wc-clipboard.min.js
336
0644
edit
dl
rm
wc-enhanced-select.js
10662
0644
edit
dl
rm
wc-enhanced-select.min.js
6061
0644
edit
dl
rm
wc-orders.js
1949
0644
edit
dl
rm
wc-orders.min.js
1135
0644
edit
dl
rm
wc-product-export.js
3719
0644
edit
dl
rm
wc-product-export.min.js
2066
0644
edit
dl
rm
wc-product-import.js
2640
0644
edit
dl
rm
wc-product-import.min.js
1484
0644
edit
dl
rm
wc-setup.js
10290
0644
edit
dl
rm
wc-setup.min.js
6476
0644
edit
dl
rm
wc-shipping-classes.js
8112
0644
edit
dl
rm
wc-shipping-classes.min.js
4526
0644
edit
dl
rm
wc-shipping-zone-methods.js
15517
0644
edit
dl
rm
wc-shipping-zone-methods.min.js
8690
0644
edit
dl
rm
wc-shipping-zones.js
9202
0644
edit
dl
rm
wc-shipping-zones.min.js
4874
0644
edit
dl
rm
wc-status-widget.js
737
0644
edit
dl
rm
wc-status-widget.min.js
511
0644
edit
dl
rm
woocommerce_admin.js
15331
0644
edit
dl
rm
woocommerce_admin.min.js
8792
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/woocommerce/assets/js/admin/backbone-modal.js
(3543B)
/*global jQuery, Backbone, _ */ ( function( $, Backbone, _ ) { 'use strict'; /** * WooCommerce Backbone Modal plugin * * @param {object} options */ $.fn.WCBackboneModal = function( options ) { return this.each( function() { ( new $.WCBackboneModal( $( this ), options ) ); }); }; /** * Initialize the Backbone Modal * * @param {object} element [description] * @param {object} options [description] */ $.WCBackboneModal = function( element, options ) { // Set settings var settings = $.extend( {}, $.WCBackboneModal.defaultOptions, options ); if ( settings.template ) { new $.WCBackboneModal.View({ target: settings.template, string: settings.variable }); } }; /** * Set default options * * @type {object} */ $.WCBackboneModal.defaultOptions = { template: '', variable: {} }; /** * Create the Backbone Modal * * @return {null} */ $.WCBackboneModal.View = Backbone.View.extend({ tagName: 'div', id: 'wc-backbone-modal-dialog', _target: undefined, _string: undefined, events: { 'click .modal-close': 'closeButton', 'click #btn-ok' : 'addButton', 'touchstart #btn-ok': 'addButton', 'keydown' : 'keyboardActions' }, resizeContent: function() { var $content = $( '.wc-backbone-modal-content' ).find( 'article' ); var max_h = $( window ).height() * 0.75; $content.css({ 'max-height': max_h + 'px' }); }, initialize: function( data ) { var view = this; this._target = data.target; this._string = data.string; _.bindAll( this, 'render' ); this.render(); $( window ).on( 'resize', function() { view.resizeContent(); }); }, render: function() { var template = wp.template( this._target ); this.$el.append( template( this._string ) ); $( document.body ).css({ 'overflow': 'hidden' }).append( this.$el ); this.resizeContent(); this.$( '.wc-backbone-modal-content' ).attr( 'tabindex' , '0' ).trigger( 'focus' ); $( document.body ).trigger( 'init_tooltips' ); $( document.body ).trigger( 'wc_backbone_modal_loaded', this._target ); }, closeButton: function( e ) { e.preventDefault(); $( document.body ).trigger( 'wc_backbone_modal_before_remove', this._target ); this.undelegateEvents(); $( document ).off( 'focusin' ); $( document.body ).css({ 'overflow': 'auto' }); this.remove(); $( document.body ).trigger( 'wc_backbone_modal_removed', this._target ); }, addButton: function( e ) { $( document.body ).trigger( 'wc_backbone_modal_response', [ this._target, this.getFormData() ] ); this.closeButton( e ); }, getFormData: function() { var data = {}; $( document.body ).trigger( 'wc_backbone_modal_before_update', this._target ); $.each( $( 'form', this.$el ).serializeArray(), function( index, item ) { if ( item.name.indexOf( '[]' ) !== -1 ) { item.name = item.name.replace( '[]', '' ); data[ item.name ] = $.makeArray( data[ item.name ] ); data[ item.name ].push( item.value ); } else { data[ item.name ] = item.value; } }); return data; }, keyboardActions: function( e ) { var button = e.keyCode || e.which; // Enter key if ( 13 === button && ! ( e.target.tagName && ( e.target.tagName.toLowerCase() === 'input' || e.target.tagName.toLowerCase() === 'textarea' ) ) ) { this.addButton( e ); } // ESC key if ( 27 === button ) { this.closeButton( e ); } } }); }( jQuery, Backbone, _ ));
Save
cmd:
run