Skip to content

Commit

Permalink
Merge pull request #8 from dtbaker/dev
Browse files Browse the repository at this point in the history
cleanup
  • Loading branch information
dtbaker committed Sep 1, 2015
2 parents d3ca300 + 3855a7e commit bfa0666
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 1 addition & 5 deletions extensions/bbpress/shub_bbpress.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
ucm.social.bbpress = {
init: function(){

jQuery('body').delegate('.bbpress_reply_button','click',function(){
var f = jQuery(this).parents('.bbpress_message').first().next('.bbpress_message_replies').find('.bbpress_message_reply_box');
f.show();
f.find('textarea')[0].focus();
}).delegate('.bbpress_check_all','change',function(){
jQuery('body').delegate('.bbpress_check_all','change',function(){
jQuery('.check_item').prop('checked', !!jQuery(this).prop('checked'));

});
Expand Down
4 changes: 2 additions & 2 deletions extensions/envato/envato_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<?php wp_nonce_field( 'save-account' . (int) $shub_envato_account->get( 'shub_account_id' ) ); ?>

<p>Setup Instructions:</p>
<ul>
<ol>
<li>Go to <a href="http://build.envato.com/" target="_blank">http://build.envato.com/</a> </li>
<li>Click My Apps at the top</li>
<li>Login using your existing Envato Account</li>
Expand All @@ -98,7 +98,7 @@
<li>Copy this token and paste it into the box below</li>
<li>Enter the Session Cookie as per the <a href="http://supporthub.co/documentation/envato/" target="_blank">help documentation</a> (required for posting item comments) </li>
<li>Click the Save and Connect to Envato button below</li>
</ul>
</ol>
<table class="form-table">
<tbody>
<tr>
Expand Down
6 changes: 1 addition & 5 deletions extensions/envato/shub_envato.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
ucm.social.envato = {
init: function(){

jQuery('body').delegate('#envato_edit_form .envato_reply_button','click',function(){
var f = jQuery(this).parents('.envato_message').first().next('.envato_message_replies').find('.envato_message_reply_box');
f.show();
f.find('textarea')[0].focus();
}).delegate('.envato_check_all','change',function(){
jQuery('body').delegate('.envato_check_all','change',function(){
jQuery('.check_item').prop('checked', !!jQuery(this).prop('checked'));

});
Expand Down

0 comments on commit bfa0666

Please sign in to comment.