Implemented refresh URL

This commit is contained in:
jfederico
2016-10-18 16:23:52 -04:00
parent e9f77b4e2e
commit 0d216adc52
6 changed files with 46 additions and 15 deletions

View File

@ -15,6 +15,23 @@
}
});
});
$('#url_form_button').click (function (event) {
$.ajax({
url : $(this).data ('url'),
dataType : "json",
async : true,
type : 'GET',
success : function(data) {
$('#meeting_url').html(data.response.meeting_url);
$('#text_meeting_url a').href(data.response.meeting_url);
$('#text_meeting_url span').html(data.response.meeting_url);
},
error : function(xhr, status, error) {
},
complete : function(xhr, status) {
}
});
});
};
$(document).on("turbolinks:load", function() {