From: helge Date: Sun, 10 Jul 2005 22:00:35 +0000 (+0000) Subject: minor improv in drop container X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fff62d4933633faeac2f8893be76e71eac68ebc2;p=sope minor improv in drop container git-svn-id: http://svn.opengroupware.org/SOPE/trunk@875 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-appserver/WEExtensions/ChangeLog b/sope-appserver/WEExtensions/ChangeLog index 60f62f5f..7c6cca0a 100644 --- a/sope-appserver/WEExtensions/ChangeLog +++ b/sope-appserver/WEExtensions/ChangeLog @@ -1,3 +1,8 @@ +2005-07-10 Helge Hess + + * WEDropContainer.m: keep drop-script JavaScript code as a static + (v4.5.74) + 2005-05-03 Helge Hess * GNUmakefile.preamble: added strict bundle dependencies for MacOSX diff --git a/sope-appserver/WEExtensions/Version b/sope-appserver/WEExtensions/Version index 5d5c4311..6df08dfe 100644 --- a/sope-appserver/WEExtensions/Version +++ b/sope-appserver/WEExtensions/Version @@ -1,5 +1,5 @@ # version file -SUBMINOR_VERSION:=73 +SUBMINOR_VERSION:=74 # v4.5.65 requires libNGObjWeb v4.5.106 diff --git a/sope-appserver/WEExtensions/WEDropContainer.m b/sope-appserver/WEExtensions/WEDropContainer.m index f480b568..5ea76213 100644 --- a/sope-appserver/WEExtensions/WEDropContainer.m +++ b/sope-appserver/WEExtensions/WEDropContainer.m @@ -446,6 +446,10 @@ @implementation WEDropScript +static NSString *dropScript = +#include "WEDropScript.jsm" +; + + (void)appendDropScriptToResponse:(WOResponse *)_response inContext:(WOContext *)_ctx { @@ -454,12 +458,6 @@ doDnD = [[[_ctx request] clientCapabilities] doesSupportDHTMLDragAndDrop]; if (![[_ctx valueForKey:@"WEDropContainerScriptDone"] boolValue] && doDnD) { - NSString *dropScript; - - dropScript = -#include "WEDropScript.jsm" - ; - [_response appendContentString:dropScript]; [_ctx takeValue:[NSNumber numberWithBool:YES]