|
@@ 3306-3307 (lines=2) @@
|
| 3303 |
|
<?php |
| 3304 |
|
} |
| 3305 |
|
$table_fields = $this->fields[ 'manage' ]; |
| 3306 |
|
if ( true === $reorder && !in_array( 'reorder', $this->actions_disabled ) && false !== $this->reorder[ 'on' ] ) |
| 3307 |
|
$table_fields = $this->fields[ 'reorder' ]; |
| 3308 |
|
if ( false === $table_fields || empty( $table_fields ) ) |
| 3309 |
|
return $this->error( __( '<strong>Error:</strong> Invalid Configuration - Missing "fields" definition.', 'pods' ) ); |
| 3310 |
|
?> |
|
@@ 3719-3723 (lines=5) @@
|
| 3716 |
|
</tbody> |
| 3717 |
|
</table> |
| 3718 |
|
<?php |
| 3719 |
|
if ( true === $reorder && !in_array( 'reorder', $this->actions_disabled ) && false !== $this->reorder[ 'on' ] ) { |
| 3720 |
|
?> |
| 3721 |
|
</form> |
| 3722 |
|
<?php |
| 3723 |
|
} |
| 3724 |
|
?> |
| 3725 |
|
<script type="text/javascript"> |
| 3726 |
|
jQuery( 'table.widefat tbody tr:even' ).addClass( 'alternate' ); |
|
@@ 3728-3738 (lines=11) @@
|
| 3725 |
|
<script type="text/javascript"> |
| 3726 |
|
jQuery( 'table.widefat tbody tr:even' ).addClass( 'alternate' ); |
| 3727 |
|
<?php |
| 3728 |
|
if ( true === $reorder && !in_array( 'reorder', $this->actions_disabled ) && false !== $this->reorder[ 'on' ] ) { |
| 3729 |
|
?> |
| 3730 |
|
jQuery( document ).ready( function () { |
| 3731 |
|
jQuery( ".reorderable" ).sortable( {axis : "y", handle : ".dragme"} ); |
| 3732 |
|
jQuery( ".reorderable" ).bind( 'sortupdate', function ( event, ui ) { |
| 3733 |
|
jQuery( 'table.widefat tbody tr' ).removeClass( 'alternate' ); |
| 3734 |
|
jQuery( 'table.widefat tbody tr:even' ).addClass( 'alternate' ); |
| 3735 |
|
} ); |
| 3736 |
|
} ); |
| 3737 |
|
<?php |
| 3738 |
|
} |
| 3739 |
|
?> |
| 3740 |
|
</script> |
| 3741 |
|
<?php |