Skip to content

Commit 1ff5a27

Browse files
committed
Merge branch 'master' into stable
2 parents 44b0141 + cf4e127 commit 1ff5a27

28 files changed

+52
-59
lines changed

app/assets/onepager/js/send.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ $(document).ready(function() {
6767
}
6868
set_metadata();
6969
// jquery bindings
70-
$('#advanced_toggle').click(function() {
70+
$('#advanced_toggle').on('click', function() {
7171
advancedToggle();
7272
});
7373
$('#amount').on('keyup blur change', updateEstimate);
7474
$('#token').on('change', updateEstimate);
75-
$('#send').click(function(e) {
75+
$('#send').on('click', function(e) {
7676
e.preventDefault();
7777
if ($(this).hasClass('disabled'))
7878
return;

app/assets/v2/js/base.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $(document).ready(function() {
3737
$('.header').css('overflow', 'visible');
3838
}
3939

40-
$('.nav-link.dropdown-toggle').click(function(e) {
40+
$('.nav-link.dropdown-toggle').on('click', function(e) {
4141
e.preventDefault();
4242
var parent = $(this).parents('.nav-item');
4343

@@ -48,7 +48,7 @@ $(document).ready(function() {
4848
});
4949

5050
// get started modal
51-
$("a[href='/get']").click(function(e) {
51+
$("a[href='/get']").on('click', function(e) {
5252
e.preventDefault();
5353
var url = $(this).attr('href');
5454

@@ -60,7 +60,7 @@ $(document).ready(function() {
6060
});
6161

6262
// bust the cache every time the user interacts with github
63-
$("[href^='/_github']").click(function(e) {
63+
$("[href^='/_github']").on('click', function(e) {
6464
var timestamp = Date.now() / 1000 | 0;
6565

6666
Cookies.set('last_github_auth_mutation', timestamp);
@@ -86,7 +86,7 @@ $(document).ready(function() {
8686
$(this).attr('src', $(this).attr('old-src'));
8787
});
8888
if (!$.fn.collapse) {
89-
$('.navbar-toggler').click(function() {
89+
$('.navbar-toggler').on('click', function() {
9090
var toggle = $(this).attr('aria-expanded');
9191

9292
console.log(toggle);

app/assets/v2/js/landing_page.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ $(document).ready(function() {
5252
$toggleIndicator.css('left', `${$funderToggle.innerWidth() + 20}px`);
5353
$sections.addClass('contributor-section');
5454
}
55-
$funderToggle.click(switchToFunder);
56-
$contributorToggle.click(switchToContributor);
55+
$funderToggle.on('click', function(e) {
56+
switchToFunder(e);
57+
});
58+
$contributorToggle.on('click', function(e) {
59+
switchToContributor(e);
60+
});
5761
switchToFunder();
5862

5963
const prevScroll = localStorage.getItem('scrollTop');

app/assets/v2/js/pages/bounty_details.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ var show_extend_deadline_modal = function() {
714714
$('.select2-selection__rendered').removeAttr('title');
715715
});
716716
// removes search field in all but the 'denomination' dropdown
717-
$('.select2-container').click(function() {
717+
$('.select2-container').on('click', function() {
718718
$('.select2-container .select2-search__field').remove();
719719
});
720720

@@ -1366,11 +1366,11 @@ const render_activity = function(result, all_results) {
13661366
activities.filter(function(activity) {
13671367
return activity.uninterest_possible;
13681368
}).forEach(function(activity) {
1369-
$('#remove-' + activity.name).click(() => {
1369+
$('#remove-' + activity.name).on('click', function() {
13701370
uninterested(result.pk, activity.profileId);
13711371
return false;
13721372
});
1373-
$('#remove-slash-' + activity.name).click(() => {
1373+
$('#remove-slash-' + activity.name).on('click', function() {
13741374
uninterested(result.pk, activity.profileId, true);
13751375
return false;
13761376
});

app/assets/v2/js/pages/bulk_payout.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ $(document).ready(function($) {
122122
}
123123
};
124124

125-
$('#acceptBounty').click(function(e) {
125+
$('#acceptBounty').on('click', function(e) {
126126
e.preventDefault();
127127

128128
if (!$('#terms').is(':checked')) {
@@ -180,7 +180,9 @@ $(document).ready(function($) {
180180
add_row();
181181
update_registry();
182182

183-
$('.add_another').click(add_row);
183+
$('.add_another').on('click', function() {
184+
add_row();
185+
});
184186
});
185187
});
186188

app/assets/v2/js/pages/dashboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ var resetFilters = function(resetKeyword) {
558558
$('input[name=idx_status][value=open]').prop('checked', true);
559559
$('.search-area input[type=text]').text(getURLParams('q'));
560560

561-
$('#onboard-alert').click(function(e) {
561+
$('#onboard-alert').on('click', function(e) {
562562

563563
if (!$('.no-results').hasClass('hidden'))
564564
$('.nonefound').css('display', 'block');
@@ -660,7 +660,7 @@ $(document).ready(function() {
660660
});
661661

662662
// sidebar clear
663-
$('.dashboard #clear').click(function(e) {
663+
$('.dashboard #clear').on('click', function(e) {
664664
e.preventDefault();
665665
resetFilters(true);
666666
reset_offset();

app/assets/v2/js/pages/increase_bounty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $(document).ready(function() {
3131
});
3232

3333
// submit bounty button click
34-
$('#increaseFunding').click(function(e) {
34+
$('#increaseFunding').on('click', function(e) {
3535
try {
3636
bounty_address();
3737
} catch (exception) {

app/assets/v2/js/pages/kudos_details.js

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $(document).ready(function() {
3434
});
3535

3636

37-
$('.kudos_levitate_container, #kudos-image').click(function() {
37+
$('.kudos_levitate_container, #kudos-image').on('click', function() {
3838

3939
pct_msg_should_be_shown = 0; // Disabled, *for now*. I will convince people that
4040
// the Kudos should say something at some point :) - KO
@@ -58,7 +58,7 @@ $(document).ready(function() {
5858
return;
5959
}
6060

61-
$('#getKudos').click(function() {
61+
$('#getKudos').on('click', function() {
6262
if (numClones > kudosNumClonesAvailable) {
6363
alert('Cannot make ' + numClones + ' clone(s). ' + kudosNumClonesAvailable + ' clones available!');
6464
return;
@@ -158,18 +158,3 @@ $('#copyLink').on('click', () => {
158158
document.execCommand('copy');
159159
$('.tooltip-share .title-tooltip').html('Copied Link');
160160
});
161-
162-
// $('#getKudos').click(function() {
163-
164-
165-
// $(document).ready(function() {
166-
// let address = web3.eth.coinbase;
167-
// console.log(address);
168-
// $.get('/api/v0.1/kudos?lister=' + address, function(results, status) {
169-
// console.log(status)
170-
// console.log(results)
171-
// let numKudos = results.length;
172-
// results.forEach(renderKudos)
173-
// // renderKudos(results)
174-
// })
175-
// })

app/assets/v2/js/pages/kudos_send.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ $(document).ready(function() {
172172

173173
set_metadata();
174174
// jquery bindings
175-
$('#advanced_toggle').click(function(e) {
175+
$('#advanced_toggle').on('click', function(e) {
176176
e.preventDefault();
177177
advancedToggle();
178178
});
179179

180180

181-
$('#send_to_toggle').click(function(e) {
181+
$('#send_to_toggle').on('click', function(e) {
182182
e.preventDefault();
183183
if ($(this).hasClass('github')) {
184184
$(this).text(gettext('Send to ETH Address'));
@@ -202,7 +202,7 @@ $(document).ready(function() {
202202

203203
// Step 1
204204
// Kudos send button is clicked
205-
$('#send').click(function(e) {
205+
$('#send').on('click', function(e) {
206206

207207
e.preventDefault();
208208

app/assets/v2/js/pages/leaderboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $(document).ready(function() {
2424
$(this).css('width', `${width}%`);
2525
});
2626

27-
$('.clickable-row').click(function(e) {
27+
$('.clickable-row').on('click', function(e) {
2828
if (typeof $(this).data('href') == 'undefined') {
2929
return;
3030
}

app/assets/v2/js/pages/new_bounty.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ $(document).ready(function() {
159159
$('.select2-selection__rendered').removeAttr('title');
160160
});
161161
// removes search field in all but the 'denomination' dropdown
162-
$('.select2-container').click(function() {
162+
$('.select2-container').on('click', function() {
163163
$('.select2-container .select2-search__field').remove();
164164
});
165165
// denomination field
@@ -182,12 +182,12 @@ $(document).ready(function() {
182182
}, 10);
183183
};
184184

185-
$('#hiringRightNow').click(function() {
185+
$('#hiringRightNow').on('click', function() {
186186
open_hiring_panel(true);
187187
});
188188

189189

190-
$('#advancedLink a').click(function(e) {
190+
$('#advancedLink a').on('click', function(e) {
191191
e.preventDefault();
192192
var target = $('#advanced_container');
193193

app/assets/v2/js/pages/onboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ onboard.watchMetamask = function() {
9191
document.alreadyFoundMetamask = true;
9292
$('.controls').show();
9393
$('#metamask-video').hide();
94-
$('#next-btn').click(function(e) {
94+
$('#next-btn').on('click', function(e) {
9595
var eth_address = $('#eth_address').val();
9696

9797
$.get('/onboard/contributor/', {eth_address: eth_address});

app/assets/v2/js/pages/process_bounty.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ window.onload = function() {
4747
$.get(uri, fulfillmentCallback);
4848
});
4949

50-
$('#goBack').click(function(e) {
50+
$('#goBack').on('click', function(e) {
5151
var url = window.location.href;
5252
var new_url = url.replace('process?source', 'details?url');
5353

@@ -122,7 +122,7 @@ window.onload = function() {
122122
};
123123

124124

125-
$('#acceptBounty').click(function(e) {
125+
$('#acceptBounty').on('click', function(e) {
126126
try {
127127
bounty_address();
128128
} catch (exception) {

app/assets/v2/js/pages/process_faucet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $(document).ready(function() {
1010
$('#admin_faucet_form').submit();
1111
};
1212

13-
$('#submitFaucet').click(function(e) {
13+
$('#submitFaucet').on('click', function(e) {
1414
e.preventDefault();
1515
$('.js-submit').attr('disabled', 'disabled');
1616
$('#loadingImg').show();

app/assets/v2/js/pages/tokens_settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $(document).ready(function() {
1616
$('.select2-selection__rendered').removeAttr('title');
1717
});
1818

19-
$('input[type=submit]').click(function(e) {
19+
$('input[type=submit]').on('click', function(e) {
2020
// acutally submit form if data is present
2121
if ($('#network').val()) {
2222
return;

app/assets/v2/js/shared.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ const showMore = (length = 400) => {
13911391
}
13921392
});
13931393

1394-
$('.morelink').click((event) => {
1394+
$('.morelink').on('click', function(event) {
13951395
if ($(event.currentTarget).hasClass('less')) {
13961396
$(event.currentTarget).removeClass('less');
13971397
$(event.currentTarget).html(expand);

app/assets/v2/js/toolbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ $(document).ready(function() {
6666
_alert({ message: response.responseJSON.error }, 'error');
6767
}
6868

69-
$('.vote-up').click(function() {
69+
$('.vote-up').on('click', function() {
7070
var el = $(this);
7171
var toolId = el.data('tool-id');
7272

7373
$.post('/actions/tool/' + toolId + '/voteUp', {}, function(response) {
7474
voteCallback(response, toolId, 1);
7575
}).fail(failVoteCallback);
7676
});
77-
$('.vote-down').click(function() {
77+
$('.vote-down').on('click', function() {
7878
var el = $(this);
7979
var toolId = el.data('tool-id');
8080

app/dashboard/management/commands/cleanup_dupe_profiles.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
1717
'''
18-
1918
from django.contrib.auth.models import User
2019
from django.core.management.base import BaseCommand
2120
from django.db.models import Count
2221
from django.db.models.functions import Lower
2322

23+
from app.utils import sync_profile
2424
from dashboard.models import Profile
2525

2626

@@ -135,3 +135,5 @@ def handle(self, *args, **options):
135135
profile = profiles.first()
136136
profile.user = user
137137
profile.save()
138+
else:
139+
sync_profile(user.username, user, hide_profile=True)

app/dashboard/templates/shared/issue_details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h5 class="font-subheader">{% trans "Details" %}</h5>
3939
</label>
4040
</div>
4141
</div>
42-
<div id="reservedForDiv" style="display: none !important;">
42+
<div id="reservedForDiv">
4343
<label class="form__label" for="reservedFor">{% trans 'Reserved For' %}</label>
4444
<select name="reservedFor" id="reservedFor" class="username-search custom-select"></select>
4545
</div>

app/retail/templates/emails/new_kudos.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
position: relative;
129129
width: 330px;
130130
max-width: 100%;
131-
margin-top: 400px;
131+
margin-top: -400px;
132132
}
133133
</style>
134134
<div>

app/retail/templates/newtoken.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h4>
114114
<script>
115115
$('#newtoken').validate();
116116
$(document).ready(function() {
117-
$('#newtoken input.btn-go').click(function(e){
117+
$('#newtoken input.btn-go').on('click', function(e){
118118
mixpanel.track("New Token Request", {});
119119
setTimeout(function(){
120120
$('#newtoken input.btn-go').attr('disabled','disabled');

app/retail/templates/results.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ <h2 class="text-center">{% trans "Browse More Results, By Programming Language"
483483
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
484484
<script src="{% static "v2/js/pages/results.js" %}"></script>
485485
<script>
486-
$("#mesh_preview").click(function(e){
486+
$("#mesh_preview").on('click', function(e){
487487
$("#mesh_network_jobs_holder").html('<iframe src="{% url 'viz_graph' %}?keyword={{keyword}}" style="width: 100%; height: 600px; border-left: 1px #dddddd solid; border-bottom: 1px #dddddd solid; " frameBorder="0">');
488488
e.preventDefault();
489489
});

app/retail/templates/settings/account.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ <h5 class="font-subheader">{% trans "Delete My Account" %}</h5>
115115
{% block scripts %}
116116
<script>
117117
$(document).ready(function() {
118-
$("#pull_from_metamask").click(function(e){
118+
$("#pull_from_metamask").on('click', function(e){
119119
if(web3 && typeof web3.eth.coinbase != 'undefined'){
120120
$("input[name=preferred_payout_address]").val(web3.eth.coinbase);
121121
} else {

app/retail/templates/settings/email.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h5>{% trans "Email Preferences" %}</h5>
5757
<script>
5858
$(document).ready(function(){
5959
// select / deselect all
60-
$('#select_all').click(function(e) {
60+
$('#select_all').on('click', function(e) {
6161
e.preventDefault();
6262
if($(this).data('direction') == '+'){
6363
$('.priv_checkbox').prop('checked', true);

app/retail/templates/settings/matching.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h5>{% trans "Matching Preferences" %}</h5>
9090
}};
9191
flash_pull_gh();
9292
$("input[name=github]").keyup(flash_pull_gh);
93-
$('#pull_gh').click(function(e){
93+
$('#pull_gh').on('click', function(e){
9494
e.preventDefault();
9595
keywordprefill();
9696
});

app/retail/templates/slack.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h4 class="font-smaller-1 pt-0">({{ num_slack }} online)</h4>
9292
<script>
9393
$('#whitepaper').validate();
9494
$(document).ready(function() {
95-
$('#whitepaper input.btn-go').click(function(e){
95+
$('#whitepaper input.btn-go').on('click', function(e){
9696
mixpanel.track("Whitepaper New Request", {});
9797
setTimeout(function(){
9898
$('#whitepaper input.btn-go').attr('disabled','disabled');

0 commit comments

Comments
 (0)