diff --git a/app/assets/v2/css/grants/detail.css b/app/assets/v2/css/grants/detail.css index d954f7e94fc..27ffac91bd1 100644 --- a/app/assets/v2/css/grants/detail.css +++ b/app/assets/v2/css/grants/detail.css @@ -153,6 +153,7 @@ textarea.editable { #form--input__description, #form--input__reference-url, +#form--twitter__account, #form--input__title, #contract_owner_address { width: 100%; diff --git a/app/assets/v2/js/grants/detail.js b/app/assets/v2/js/grants/detail.js index e25d98130bf..e951162ec26 100644 --- a/app/assets/v2/js/grants/detail.js +++ b/app/assets/v2/js/grants/detail.js @@ -1,5 +1,6 @@ const editableFields = [ '#form--input__title', + '#form--twitter__account', '#form--input__reference-url', '#contract_owner_address', '#grant-members', @@ -111,6 +112,7 @@ $(document).ready(function() { $('.select2-selection__rendered').removeAttr('title'); $('#form--input__title').height($('#form--input__title').prop('scrollHeight')); $('#form--input__reference-url').height($('#form--input__reference-url').prop('scrollHeight')); + $('#form--twitter__account').height($('#form--twitter__account').prop('scrollHeight')); $('#edit-details').on('click', (event) => { event.preventDefault(); @@ -146,12 +148,14 @@ $(document).ready(function() { let edit_title = $('#form--input__title').val(); let edit_reference_url = $('#form--input__reference-url').val(); + let twitter_account = $('#form--twitter__account').val(); let edit_grant_members = $('#grant-members').val(); let edit_categories = $('#grant-categories').val(); let data = { 'edit-title': edit_title, 'edit-reference_url': edit_reference_url, + 'edit-twitter_account': twitter_account, 'edit-grant_members[]': edit_grant_members, 'edit-categories[]': edit_categories }; diff --git a/app/assets/v2/js/grants/index.js b/app/assets/v2/js/grants/index.js index 6a969b12dd6..59300f565c6 100644 --- a/app/assets/v2/js/grants/index.js +++ b/app/assets/v2/js/grants/index.js @@ -422,6 +422,4 @@ $(document).on('click', '.following-action', async(e) => { element.closest('.grant-card').hide(); } } - - console.log(response); }); diff --git a/app/grants/templates/grants/detail/funding.html b/app/grants/templates/grants/detail/funding.html index f85b6bb20da..c483959556c 100644 --- a/app/grants/templates/grants/detail/funding.html +++ b/app/grants/templates/grants/detail/funding.html @@ -21,17 +21,16 @@ {% if not grant.twitter_verified %}