Skip to content

Commit

Permalink
Add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-gp committed Mar 2, 2018
1 parent 66a9071 commit ca3c6fe
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
72 changes: 72 additions & 0 deletions assets/css/_import-export.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions assets/css/_import-export.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions assets/js/admin/import-export.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
jQuery(document).ready(function () {
var smImportForm = jQuery('#sm-import-upload-form');
if (smImportForm.length) {
var fileField = smImportForm.find('#upload');
var importTrigger = smImportForm.siblings('#sm-import-trigger');
var submitButton = smImportForm.find('#submit');
importTrigger.click(function() {
fileField.click();
});
fileField.change(function (){
importTrigger.find('.import-sniper').css('display', 'inline-block');
importTrigger.attr('disabled', true);
submitButton.click();
});
}
});

0 comments on commit ca3c6fe

Please sign in to comment.