Skip to content

Commit 66df223

Browse files
author
Antti Kuosmanen
committed
Debounce parseFields in admin edit view
Fixes #49
1 parent 94c7caa commit 66df223

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

assets/scripts/wplf-admin-form.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ $(document).ready(function() {
4848
// save field array in a hidden input
4949
$('input#wplf_fields').val( fields.join() );
5050
$('input#wplf_required').val( required.join() );
51-
5251
}
5352

54-
$('#content').bind('input propertychange', parseFields);
53+
$('#content').bind('input propertychange', _.debounce(parseFields, 300));
5554
parseFields();
5655

5756
// display email copy field if the feature is enabled

0 commit comments

Comments
 (0)