From: Wilfried Goesgens Date: Tue, 21 Aug 2012 22:13:45 +0000 (+0200) Subject: Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel X-Git-Tag: v8.20~248 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=3ba8f49b0829566a78901afe33291d1cbce336be;hp=4fb9c8db45e0415c795916e15925fd5fa190a454;p=citadel.git Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel --- diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index fb828a683..de48e2efb 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -388,11 +388,12 @@ function addRoomToList(floorUL,room, roomToEmphasize) { function roomListDropHandler(target, dropped) { if (dropped.getAttribute("citadel:msgid")) { var room = getTextContent(target); + console.log(room); var msgIds = ""; for(msgId in currentlyMarkedRows) { //defined in summaryview.js msgIds += ","+msgId; if (msgIds.length > 800) { - var mvCommand = encodeURI("g_cmd=MOVE " + msgIds + "|"+room+"|0"); + var mvCommand = "g_cmd=MOVE%20" + msgIds + "|"+encodeURIComponent(room)+"|0"; new Ajax.Request("ajax_servcmd", { parameters: mvCommand, method: 'post', @@ -401,7 +402,7 @@ function roomListDropHandler(target, dropped) { } } - var mvCommand = encodeURI("g_cmd=MOVE " + msgIds + "|"+room+"|0"); + var mvCommand = "g_cmd=MOVE%20" + msgIds + "|"+encodeURIComponent(room)+"|0"; new Ajax.Request('ajax_servcmd', { method: 'post', parameters: mvCommand,