Commit ddf8f275 authored by Diogo's avatar Diogo

Update custom.js, in order for the button "Get quote" to change its text to...

Update custom.js, in order for the button "Get quote" to change its text to "Thanks! Your Hoster will contact you soon!", and to disable the button, as the previous line wasn't working.
I checked here https://stackoverflow.com/questions/2487747/selecting-element-by-data-attribute#2487751 
and here https://stackoverflow.com/questions/5580616/how-to-change-the-text-of-a-button-in-jquery#5580652
for solutions
parent 85877e52
......@@ -10,6 +10,8 @@ $(document).on('click', '.app-request', function () {
'https://chat.indie.host/hooks/vGTrWc3BSB4CYZ4hx/2Fxzw2n9o6fWAo4HmKe6SgZfWLNiYjjy7934LAMkEzWYEfZt',
{'text':text},
function() {
$('#button-' + appid).prop('value', 'Thanks! Your Hoster will contact you soon!').prop("disabled",true);;
// not changing button text
// $('#button-' + appid).prop('value', 'Thanks! Your Hoster will contact you soon!').prop("disabled",true);;
$('*[data-appid="'+ appid+'"]').html('Thanks! Your Hoster will contact you soon!').prop("disabled",true);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment