Skip to content

Commit

Permalink
bugfixes & console.log removal
Browse files Browse the repository at this point in the history
  • Loading branch information
keyBeatz committed Jun 17, 2017
1 parent 3c2162b commit 8ae6df2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,6 @@ nav.cjm_file_header ul li img.cjm_ajax_loader {
text-align: center;
font-size: 15px;
color: #444;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
z-index: 102;
}

Expand Down
4 changes: 0 additions & 4 deletions assets/js/admin-minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function CssJsMinify(mode, box_html ) {
$this.parent().addClass( 'loading' );
$this.prop( "disabled", true );

console.log( data );

// ajax request
self.send_data( nonce, task, data, function( response ) {
Expand All @@ -66,7 +65,6 @@ function CssJsMinify(mode, box_html ) {
self.aloader.fadeOut( 'fast' );
$this.parent().removeClass( 'loading' );
$this.prop( "disabled", false );
console.log( response );
});
});
};
Expand Down Expand Up @@ -266,11 +264,9 @@ function CssJsMinify(mode, box_html ) {
data.task = task;
data.data = data_send;

console.log( data.data );

// send ajax request
$.post( cjm.ajax_url, data, function( response ) {
console.log( response );
// callback for response handling
callback( response );
});
Expand Down
2 changes: 1 addition & 1 deletion classes/FileRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function add_async_styles( $tag, $handle, $src ) {
if( !empty( $this->getMinifiedCss() ) && is_array( $this->getMinifiedCss() ) ) {
foreach( $this->getMinifiedCss() as $file ) {
if( ( $file['async'] == 'async' || $file['async'] == 'defer' ) && $file['name'] == $handle )
$tag = "<noscript class='cjm_css_async'>{esc_html( $tag )}</noscript>";
$tag = "<noscript class='cjm_css_async'>{$tag}</noscript>";
}
}

Expand Down
1 change: 0 additions & 1 deletion functions/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function cjm_css_async() {
if( jQuery( css ).length > 0 ) {
jQuery( css ).each( function( i ) {
var html = jQuery( this ).html();
console.log(html);
if( html.length > 0 ) {
jQuery( this ).before( html.replace('&lt;', '<').replace('&gt;', '>') );
}
Expand Down

0 comments on commit 8ae6df2

Please sign in to comment.