Hide blank slate on add zone
This commit is contained in:
parent
59a33d2188
commit
83eab2344e
|
@ -123,7 +123,6 @@
|
|||
$.each( zones, function( id, rowData ) {
|
||||
view.renderRow( rowData );
|
||||
} );
|
||||
|
||||
} else {
|
||||
view.$el.append( $blank_template );
|
||||
}
|
||||
|
@ -242,6 +241,8 @@
|
|||
editing : true
|
||||
} );
|
||||
|
||||
$( '.wc-shipping-zones-blank-state' ).closest( 'tr' ).remove();
|
||||
|
||||
newRow.zone_order = 1 + _.max(
|
||||
_.pluck( zones, 'zone_order' ),
|
||||
function ( val ) {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue