Skip to content

Commit

Permalink
Fixed saving of settings form
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Moffat authored and Mark Moffat committed Feb 6, 2020
1 parent fdbbceb commit a02917b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions public/javascripts/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ $(document).ready(function (){
$('#product_optOptions').val('');
});

$(document).on('click', '#btnSettingsUpdate', function(e){
$('#settingsForm').submit();
});

// call update settings API
$('#settingsForm').validator().on('submit', function(e){
if(!e.isDefaultPrevented()){
Expand Down
Loading

0 comments on commit a02917b

Please sign in to comment.