diff --git a/src/patches/otpollLocation.patch b/src/patches/otpollLocation.patch new file mode 100644 index 00000000..78370812 --- /dev/null +++ b/src/patches/otpollLocation.patch @@ -0,0 +1,13 @@ +diff --git a/js/3rdparty/webodf/editor/server/owncloud/ServerFactory.js b/js/3rdparty/webodf/editor/server/owncloud/ServerFactory.js +index 3158808..bf3a32c 100644 +--- a/js/3rdparty/webodf/editor/server/owncloud/ServerFactory.js ++++ b/js/3rdparty/webodf/editor/server/owncloud/ServerFactory.js +@@ -51,7 +51,7 @@ define("webodf/editor/server/owncloud/ServerFactory", [ + this.createServer = function (args) { + var server; + args = args || {}; +- args.url = "./documents/ajax/otpoll.php"; ++ args.url = OC.filePath('documents', 'ajax', 'otpoll.php'); + args.sessionStateToFileUrl = OC.Router.generate('documents_session_save'); + + server = new PullBoxServer(args); diff --git a/src/updateWebODF.sh b/src/updateWebODF.sh index 608888bd..830668f7 100755 --- a/src/updateWebODF.sh +++ b/src/updateWebODF.sh @@ -35,3 +35,4 @@ cp "$WEBODF_BUILDDIR"/programs/editor/editor.css ./css/3rdparty/webodf # patches against upstream patch -p1 -i src/patches/fontsCssPath.patch patch -p1 -i src/patches/hideCaretAvatar.patch +patch -p1 -i src/patches/otpollLocation.patch