forked from External/greenlight
add end button to views
This commit is contained in:
@ -34,6 +34,18 @@
|
||||
});
|
||||
});
|
||||
|
||||
$('.meeting-end').click (function (event) {
|
||||
var jqxhr = Meeting.getInstance().endMeeting();
|
||||
var btn = $(this);
|
||||
btn.prop("disabled", true);
|
||||
jqxhr.done(function(data) {
|
||||
|
||||
});
|
||||
jqxhr.fail(function(xhr, status, error) {
|
||||
console.info("meeting end failed");
|
||||
});
|
||||
});
|
||||
|
||||
$('.meeting-url-copy').click (function (e) {
|
||||
meetingURL = $('.meeting-url');
|
||||
meetingURL.select();
|
||||
|
@ -36,6 +36,13 @@ class Meeting {
|
||||
});
|
||||
};
|
||||
|
||||
endMeeting() {
|
||||
return $.ajax({
|
||||
url: this.url + "/end",
|
||||
type: 'DELETE'
|
||||
});
|
||||
}
|
||||
|
||||
setURL(url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
Reference in New Issue
Block a user