replace trailing slash of wopi url

(cherry picked from commit 6d49e2d003b1c724bbc1e9958b2eb5946b75e2eb)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
This commit is contained in:
Andras Timar 2017-03-19 00:27:05 +01:00
parent 1cc5e43106
commit df0c7cce94

View File

@ -4,7 +4,7 @@ var documentsSettings = {
save : function() { save : function() {
$('#wopi_apply').attr('disabled', true); $('#wopi_apply').attr('disabled', true);
var data = { var data = {
wopi_url : $('#wopi_url').val() wopi_url : $('#wopi_url').val().replace(/\/$/, '')
}; };
OC.msg.startAction('#documents-admin-msg', t('richdocuments', 'Saving...')); OC.msg.startAction('#documents-admin-msg', t('richdocuments', 'Saving...'));