Skip to content

Commit 863573a

Browse files
author
NicolasGarnier
committed
Forgot to change the URL param from fileId to FileIds
1 parent 32389ec commit 863573a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/rtpg.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ rtpg.onFileLoaded = function(doc) {
120120
$('#documentName').attr('disabled', '');
121121
var body = {'title': $('#documentName').val()};
122122
var renameRequest = gapi.client.drive.files.patch({
123-
'fileId' : rtclient.params['fileId'],
123+
'fileId' : rtclient.params['fileIds'].split(',')[0],
124124
'resource' : body
125125
});
126126
renameRequest.execute(function(resp) {

0 commit comments

Comments
 (0)