projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9e5b014
)
Drag+Drop move: propperly escape the roomname so + and friends in roomnames remain...
author
Wilfried Goesgens
<dothebart@citadel.org>
Tue, 21 Aug 2012 22:12:51 +0000
(
00:12
+0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Tue, 21 Aug 2012 22:32:21 +0000
(
00:32
+0200)
webcit/static/wclib.js
patch
|
blob
|
history
diff --git
a/webcit/static/wclib.js
b/webcit/static/wclib.js
index fb828a6836803435ff0cee8afa5ba64420dbadb1..de48e2efbf8c37a6112109c341586ca6274048c0 100644
(file)
--- 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);
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 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',
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,
new Ajax.Request('ajax_servcmd', {
method: 'post',
parameters: mvCommand,