Author: solomax
Date: Thu Jun 28 03:33:43 2012
New Revision: 1354813
URL: http://svn.apache.org/viewvc?rev=1354813&view=rev
Log:
"Debug.write"s are put under "if ($debug) ".
Modified:
incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/components/upload/fileUpload.lzx
incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/components/upload/uploadWindowExplorer.lzx
Modified:
incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/components/upload/fileUpload.lzx
URL:
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/components/upload/fileUpload.lzx?rev=1354813&r1=1354812&r2=1354813&view=diff
==============================================================================
---
incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/components/upload/fileUpload.lzx
(original)
+++
incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/components/upload/fileUpload.lzx
Thu Jun 28 03:33:43 2012
@@ -42,24 +42,24 @@
<handler name="oninit" args="invoker">
<![CDATA[
this.fr = new flash.net.FileReference();
- //Debug.write(fr);
+ //if ($debug) Debug.write(fr);
this.fr.onHTTPError = function(fr, httpError){
var t = _root;
- t.Debug.write('onHTTPError function: ' + httpError);
+ if ($debug) t.Debug.write('onHTTPError function: ' + httpError);
new lz.errorPopup(canvas,{error:'Err2: '+httpError});
}
this.fr.onIOError = function(fr){
var t = _root;
- t.Debug.write.write('onIOError function');
+ if ($debug) t.Debug.write.write('onIOError function');
new lz.errorPopup(canvas,{error:'onIOError
invoked '});
}
function callbackFunction ( e ) {
var t = _root;
- t.Debug.write( e.data );
+ if ($debug) t.Debug.write( e.data );
}
this.fr.onSecurityError = function(fr, errorString){
var t = _root;
- t.Debug.write('onSecurityError function: ' + errorString);
+ if ($debug) t.Debug.write('onSecurityError function: ' +
errorString);
new lz.errorPopup(canvas,{error:'Err2: '+errorString});
}
this.fr.addListener(invoker, callbackFunction);
@@ -135,20 +135,20 @@
</method>
<method name="upload" args="url"><![CDATA[
- Debug.write("url: ",url,this.fr);
+ if ($debug) Debug.write("url: ",url,this.fr);
this.fr.upload(url);
]]>
</method>
<method name="onCancel" args="fr">
<![CDATA[
- Debug.write('onCancel invoked');
+ if ($debug) Debug.write('onCancel invoked');
]]>
</method>
<method name="onComplete" args="fr">
<![CDATA[
- Debug.write('onComplete invoked');
+ if ($debug) Debug.write('onComplete invoked');
canvas.filedialogRef.progressBar.setValue(100);
//canvas.filedialogRef.upload.setAttribute('enabled', false);
if
(canvas.filedialogRef.sendCompleted)canvas.filedialogRef.sendCompleted.sendEvent();
@@ -157,25 +157,25 @@
<method name="onHTTPError" args="fr, httpError">
<![CDATA[
- Debug.write('onHTTPError invoked: ' + httpError);
+ if ($debug) Debug.write('onHTTPError invoked: ' + httpError);
]]>
</method>
<method name="onIOError" args="fr">
<![CDATA[
- Debug.write('onIOError invoked',fr);
+ if ($debug) Debug.write('onIOError invoked',fr);
]]>
</method>
<method name="onOpen" args="fr">
<![CDATA[
- Debug.write('onOpen invoked',fr);
+ if ($debug) Debug.write('onOpen invoked',fr);
]]>
</method>
<method name="onSecurityError" args="fr, errorString">
<![CDATA[
- Debug.write('onSecurityError invoked: ' + errorString);
+ if ($debug) Debug.write('onSecurityError invoked: ' + errorString);
]]>
</method>
Modified:
incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/components/upload/uploadWindowExplorer.lzx
URL:
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/components/upload/uploadWindowExplorer.lzx?rev=1354813&r1=1354812&r2=1354813&view=diff
==============================================================================
---
incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/components/upload/uploadWindowExplorer.lzx
(original)
+++
incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/components/upload/uploadWindowExplorer.lzx
Thu Jun 28 03:33:43 2012
@@ -72,7 +72,7 @@
'&parentPath=' +
encodeURIComponent(uploadmoduleimgfolderVar + '/' )+
'&room_id=files'+
'&sid='+canvas.sessionId;
- ////Debug.write("downloadurl: ",downloadurl);
+ ////if ($debug) Debug.write("downloadurl: ",downloadurl);
return downloadurl;
]]>
</method>
@@ -143,7 +143,7 @@
var nowTime = new Date();
var datumsString = nowTime.getHours()+':'+nowTime.getMinutes();
tempSendArray[1] = datumsString;
- //Debug.write("Setting Message");
+ //if ($debug) Debug.write("Setting Message");
tempSendArray[2] = 'newfile';
tempSendArray[3] = canvas.currentusename;
//if ($debug) Debug.write("send: ",tempSendArray);
@@ -173,7 +173,7 @@
<method name="onHTTPError" args="fr, httpError">
<![CDATA[
- Debug.write('onHTTPError invoked: ' + httpError);
+ if ($debug) Debug.write('onHTTPError invoked: ' +
httpError);
new lz.errorPopup(canvas,{error:'HTTP-ERROR: '+httpError});
this.parent.close();
var tempSendArray = new Array ();
@@ -181,17 +181,17 @@
var nowTime = new Date();
var datumsString =
nowTime.getHours()+':'+nowTime.getMinutes();
tempSendArray[1] = datumsString;
- //Debug.write("Setting Message");
+ //if ($debug) Debug.write("Setting Message");
tempSendArray[2] = 'newfile';
tempSendArray[3] = canvas.currentusename;
- //Debug.write("send: ",tempSendArray);
+ //if ($debug) Debug.write("send:
",tempSendArray);
canvas.objMessage = tempSendArray;
hib.sendMessage.doCall();
]]>
</method>
<method name="onSelect" args="fr">
- //Debug.write("onSelect: ",getName());
+ //if ($debug) Debug.write("onSelect: ",getName());
this.parent.txtFile.setAttribute('text',getName());
this.parent.upload.setAttribute('enabled', true);
</method>