Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\copia nuevo\htdocs\cumbreclima\wp-content\plugins\js_composer\assets\js\params\ drwxrwxrwx |
Viewing file: column_offset.js (2.27 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | if(_.isUndefined(window.vc)) var vc = {atts: {}}; (function ($) { var VcColumnOffsetParam = Backbone.View.extend({ events: { // 'change [data-type="offset-sm"],[data-type="size-sm"]': 'setLgPlaceholders' }, $lg_offset_placeholder_value: false, $lg_size_placeholder_value: false, initialize: function() { _.bindAll(this, 'setLgPlaceholders'); }, render: function() { // this.$lg_offset_placeholder_value = this.$el.find('[data-type="offset-sm"]'); // this.$lg_size_placeholder_value = this.$el.find('[data-type="size-sm"]'); // this.$lg_size = this.$el.find('[data-type="size-lg"]'); // this.$lg_offset = this.$el.find('[data-type=offset-lg]'); // this.setLgPlaceholders(); return this; }, /** * * @return array */ save: function() { var data = []; this.$el.find('.vc_column_offset_field').each(function(){ var $field = $(this); if($field.is(':checkbox:checked')) { data.push($field.attr('name')); } else if($field.is('select') && $field.val() != '') { data.push($field.val()); } }); return data; }, setLgPlaceholders: function() { // size = this.$lg_size_placeholder_value.val().replace(/[^\d]/g, ''), var offset = this.$lg_offset_placeholder_value.val().replace(/[^\d]/g, ''); // this.$lg_size.find('option:first').text(size ? VcI8nColumnOffsetParam.inherit + size : ''); this.$lg_size.find('option:first').text(VcI8nColumnOffsetParam.inherit_default); this.$lg_offset.find('option:first').text(offset ? VcI8nColumnOffsetParam.inherit + offset : ''); } }); /** * Add new param to atts types list for vc * @type {Object} */ vc.atts.column_offset = { parse: function(param) { var $field = this.content().find('input.wpb_vc_param_value.' + param.param_name + ''), column_offset = $field.data('vcColumnOffset'), result = column_offset.save(); return result.join(' '); } }; /** * Find all fields and execute */ $('[data-column-offset="true"]').each(function(){ var $this = $(this), $field = $this.find('.wpb_vc_param_value'); $field.data('vcColumnOffset', new VcColumnOffsetParam({el: $this}).render()); }); })(window.jQuery); |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]-- |