????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.219.68.172 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.eu/wp-content/plugins/fusion-builder/js/views/ |
Upload File : |
var FusionPageBuilder = FusionPageBuilder || {}; ( function( $ ) { $( document ).ready( function() { // Builder Row View FusionPageBuilder.RowView = window.wp.Backbone.View.extend( { className: 'fusion_builder_row', template: FusionPageBuilder.template( $( '#fusion-builder-row-template' ).html() ), events: { 'click .fusion-builder-insert-column': 'displayColumnsOptions' }, initialize: function() { }, render: function() { this.$el.html( this.template( this.model.toJSON() ) ); this.sortableColumns(); // Show column settings when adding a new row if ( 'manually' !== this.model.get( 'created' ) ) { this.$el.find( '.fusion-builder-insert-column' ).trigger( 'click' ); } return this; }, sortableColumns: function() { var thisEl = this, selectedEl = thisEl.$el.find( '.fusion-builder-row-container' ), cid = this.model.get( 'cid' ); selectedEl.sortable( { helper: 'clone', cancel: '.fusion-builder-settings, .fusion-builder-clone, .fusion-builder-remove, .fusion-builder-section-add, .fusion-builder-add-element, .fusion-builder-insert-column, #fusion_builder_controls, .fusion-builder-save-column, .fusion-builder-resize-column, .column-sizes, .fusion-builder-save-column-dialog, .fusion-builder-save-inner-row-dialog-button, .fusion-builder-remove-inner-row, .fusion_builder_row_inner .fusion-builder-row-content', items: '.fusion-builder-column-outer', connectWith: '.fusion-builder-row-container', tolerance: 'pointer', update: function( event, ui ) { var elementCID = ui.item.data( 'cid' ), model = thisEl.collection.find( function( model ) { return model.get( 'cid' ) == elementCID; } ); // Moved column within the same section/row if ( model.get( 'parent' ) === thisEl.model.attributes.cid && $( ui.item ).closest( event.target ).length ) { // Moved column to a different section/row } else { model.set( 'parent', thisEl.model.attributes.cid ); } // Save history state fusionHistoryManager.turnOnTracking(); fusionHistoryState = fusionBuilderText.moved_column; FusionPageBuilderEvents.trigger( 'fusion-element-sorted' ); } } ).disableSelection(); }, displayColumnsOptions: function( event ) { var view; if ( event ) { event.preventDefault(); } FusionPageBuilderApp.parentRowId = this.model.get( 'cid' ); view = new FusionPageBuilder.ModalView( { model: this.model, collection: this.collection, attributes: { 'data-modal_view': 'column_library' }, view: this } ); $( 'body' ).append( view.render().el ); }, removeRow: function( event, force ) { var columns; if ( event ) { event.preventDefault(); } columns = FusionPageBuilderViewManager.getChildViews( this.model.get( 'cid' ) ); // Remove all columns _.each( columns, function( column ) { column.removeColumn(); } ); FusionPageBuilderViewManager.removeView( this.model.get( 'cid' ) ); this.model.destroy(); this.remove(); if ( event ) { FusionPageBuilderEvents.trigger( 'fusion-element-removed' ); } } } ); } ); } )( jQuery );