1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00

Remove interface elements on POST call

This commit is contained in:
Loic Blot 2015-06-23 21:04:58 +00:00
parent 3105eeb776
commit 55f9e4136b

View File

@ -54,6 +54,14 @@ app.controller('OcSmsController', ['$scope',
};
$scope.removeConversation = function() {
$.post(OC.generateUrl('/apps/ocsms/delete/conversation'), {"contact": g_curContactName}, function(data) {
// Reinit main window
$('#ocsms-phone-label').html('');
$('#ocsms-phone-opt-number').html('');
$('#ocsms-phone-msg-nb').html('');
$('#app-content-wrapper').html('<div id="ocsms-empty-conversation">Please choose a conversation on the left menu</div>');
$('#ocsms-conversation-removal').hide();
$('#app-content-header').hide();
$("li[peer-label='" + g_curContactName + "']").remove();
});
}