Skip to content

Commit 6f7b532

Browse files
git issue
1 parent ade8c19 commit 6f7b532

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

admin/js/woocommerce_gift_cards_lite-admin.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111
jQuery( document ).ready(
1212
function(){
13+
14+
var maxPercentField = $( '#wps_wgm_general_setting_giftcard_max_percent, input[name="wps_wgm_general_setting_giftcard_max_percent"]' );
15+
if ( maxPercentField.length ) {
16+
// Allow 0 to represent "no limit" without failing HTML5 min validation.
17+
maxPercentField.attr( 'min', '0' );
18+
}
1319

1420
jQuery( '.cancel_notice' ).on(
1521
'click',

0 commit comments

Comments
 (0)