Code Duplication    Length = 2-11 lines in 3 locations

classes/PodsUI.php 3 locations

@@ 3357-3358 (lines=2) @@
3354
<?php
3355
        }
3356
        $table_fields = $this->fields[ 'manage' ];
3357
        if ( true === $reorder && !in_array( 'reorder', $this->actions_disabled ) && false !== $this->reorder[ 'on' ] )
3358
            $table_fields = $this->fields[ 'reorder' ];
3359
        if ( false === $table_fields || empty( $table_fields ) )
3360
            return $this->error( __( '<strong>Error:</strong> Invalid Configuration - Missing "fields" definition.', 'pods' ) );
3361
        ?>
@@ 3819-3823 (lines=5) @@
3816
            </tbody>
3817
        </table>
3818
        <?php
3819
        if ( true === $reorder && !in_array( 'reorder', $this->actions_disabled ) && false !== $this->reorder[ 'on' ] ) {
3820
            ?>
3821
</form>
3822
<?php
3823
        }
3824
        ?>
3825
    <script type="text/javascript">
3826
        jQuery( 'table.widefat tbody tr:even' ).addClass( 'alternate' );
@@ 3828-3838 (lines=11) @@
3825
    <script type="text/javascript">
3826
        jQuery( 'table.widefat tbody tr:even' ).addClass( 'alternate' );
3827
            <?php
3828
            if ( true === $reorder && !in_array( 'reorder', $this->actions_disabled ) && false !== $this->reorder[ 'on' ] ) {
3829
                ?>
3830
            jQuery( document ).ready( function () {
3831
                jQuery( ".reorderable" ).sortable( {axis : "y", handle : ".dragme"} );
3832
                jQuery( ".reorderable" ).bind( 'sortupdate', function ( event, ui ) {
3833
                    jQuery( 'table.widefat tbody tr' ).removeClass( 'alternate' );
3834
                    jQuery( 'table.widefat tbody tr:even' ).addClass( 'alternate' );
3835
                } );
3836
            } );
3837
                <?php
3838
            }
3839
            ?>
3840
    </script>
3841
    <?php