|
@@ 3739-3740 (lines=2) @@
|
| 3736 |
|
<?php |
| 3737 |
|
}//end if |
| 3738 |
|
$table_fields = $this->fields['manage']; |
| 3739 |
|
if ( true === $reorder && ! in_array( 'reorder', $this->actions_disabled ) && false !== $this->reorder['on'] ) { |
| 3740 |
|
$table_fields = $this->fields['reorder']; |
| 3741 |
|
} |
| 3742 |
|
if ( false === $table_fields || empty( $table_fields ) ) { |
| 3743 |
|
return $this->error( __( '<strong>Error:</strong> Invalid Configuration - Missing "fields" definition.', 'pods' ) ); |
|
@@ 4257-4261 (lines=5) @@
|
| 4254 |
|
</tbody> |
| 4255 |
|
</table> |
| 4256 |
|
<?php |
| 4257 |
|
if ( true === $reorder && ! in_array( 'reorder', $this->actions_disabled ) && false !== $this->reorder['on'] ) { |
| 4258 |
|
|
| 4259 |
|
?> |
| 4260 |
|
</form> |
| 4261 |
|
<?php |
| 4262 |
|
} |
| 4263 |
|
?> |
| 4264 |
|
<script type="text/javascript"> |
|
@@ 4267-4277 (lines=11) @@
|
| 4264 |
|
<script type="text/javascript"> |
| 4265 |
|
jQuery( 'table.widefat tbody tr:even' ).addClass( 'alternate' ); |
| 4266 |
|
<?php |
| 4267 |
|
if ( true === $reorder && ! in_array( 'reorder', $this->actions_disabled ) && false !== $this->reorder['on'] ) { |
| 4268 |
|
?> |
| 4269 |
|
jQuery( document ).ready( function () { |
| 4270 |
|
jQuery( ".reorderable" ).sortable( {axis : "y", handle : ".dragme"} ); |
| 4271 |
|
jQuery( ".reorderable" ).bind( 'sortupdate', function ( event, ui ) { |
| 4272 |
|
jQuery( 'table.widefat tbody tr' ).removeClass( 'alternate' ); |
| 4273 |
|
jQuery( 'table.widefat tbody tr:even' ).addClass( 'alternate' ); |
| 4274 |
|
} ); |
| 4275 |
|
} ); |
| 4276 |
|
<?php |
| 4277 |
|
} |
| 4278 |
|
?> |
| 4279 |
|
</script> |
| 4280 |
|
<?php |