Skip to content

Commit

Permalink
Add jshintignore file. Add globals to top of js file
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHerman committed Feb 18, 2018
1 parent d9331fd commit 3242ab3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/assets/js/**/*.min.js
3 changes: 1 addition & 2 deletions lib/assets/js/webp-images-media-element.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* global ajaxurl, webpMediaElementData */
( function( $ ) {

var selectedIDs;
Expand Down Expand Up @@ -145,8 +146,6 @@
// We can also pass the url value separately from ajaxurl for front end AJAX implementations
jQuery.post( ajaxurl, data, function( response ) {

console.log( response );

var compressionResults = ! response.success ? 'Error' : response.data.compressionResults;

clickedRow.remove();
Expand Down
2 changes: 1 addition & 1 deletion lib/assets/js/webp-images-media-element.min.js

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

0 comments on commit 3242ab3

Please sign in to comment.