You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by vd...@apache.org on 2013/11/25 10:54:42 UTC
svn commit: r1545196 - in /openmeetings/branches/2.x/WebContent/src:
index.html main.lzx modules/conference/whiteboard/base/baseDrawObject.lzx
modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx
Author: vdegtyarev
Date: Mon Nov 25 09:54:41 2013
New Revision: 1545196
URL: http://svn.apache.org/r1545196
Log:
OPENMEETINGS-368 is fixed; Allows non moderator users zoom whiteboard.
Modified:
openmeetings/branches/2.x/WebContent/src/index.html
openmeetings/branches/2.x/WebContent/src/main.lzx
openmeetings/branches/2.x/WebContent/src/modules/conference/whiteboard/base/baseDrawObject.lzx
openmeetings/branches/2.x/WebContent/src/modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx
Modified: openmeetings/branches/2.x/WebContent/src/index.html
URL: http://svn.apache.org/viewvc/openmeetings/branches/2.x/WebContent/src/index.html?rev=1545196&r1=1545195&r2=1545196&view=diff
==============================================================================
--- openmeetings/branches/2.x/WebContent/src/index.html (original)
+++ openmeetings/branches/2.x/WebContent/src/index.html Mon Nov 25 09:54:41 2013
@@ -26,7 +26,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
-<meta name="viewport" content="width=device-width; initial-scale=1.0;">
+<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>OpenLaszlo Application</title>
<script type="text/javascript">
// If loaded bare into a browser, set the browser size to the canvas size
Modified: openmeetings/branches/2.x/WebContent/src/main.lzx
URL: http://svn.apache.org/viewvc/openmeetings/branches/2.x/WebContent/src/main.lzx?rev=1545196&r1=1545195&r2=1545196&view=diff
==============================================================================
--- openmeetings/branches/2.x/WebContent/src/main.lzx (original)
+++ openmeetings/branches/2.x/WebContent/src/main.lzx Mon Nov 25 09:54:41 2013
@@ -81,12 +81,15 @@
<![CDATA[
canvas.sendViaLocalConnection(canvas.vid_lc_name, "clearAll", null);
if($debug) Debug.write("main.lzx/main_content._content.inner.clearAll(): ",this.inner,this.inner.subviews.length);
- var baseContent = this.inner.subviews[0].close();
- for (var eg in this.inner.subviews) {
- if($debug) Debug.write("main.lzx/main_content._content.inner.clearAll()-subviews: ",this.inner.subviews[eg]);
- if (eg!=0) this.inner.subviews[eg].close();
+ if (this.inner.subviews[0] != null) {
+ var baseContent = this.inner.subviews[0].close();
+ for (var eg in this.inner.subviews) {
+ if($debug) Debug.write("main.lzx/main_content._content.inner.clearAll()-subviews: ",this.inner.subviews[eg]);
+ if (eg!=0) this.inner.subviews[eg].close();
+ }
+ return baseContent;
}
- return baseContent;
+ return null;
]]>
</method>
</view>
Modified: openmeetings/branches/2.x/WebContent/src/modules/conference/whiteboard/base/baseDrawObject.lzx
URL: http://svn.apache.org/viewvc/openmeetings/branches/2.x/WebContent/src/modules/conference/whiteboard/base/baseDrawObject.lzx?rev=1545196&r1=1545195&r2=1545196&view=diff
==============================================================================
--- openmeetings/branches/2.x/WebContent/src/modules/conference/whiteboard/base/baseDrawObject.lzx (original)
+++ openmeetings/branches/2.x/WebContent/src/modules/conference/whiteboard/base/baseDrawObject.lzx Mon Nov 25 09:54:41 2013
@@ -74,19 +74,20 @@
<method name="doUpdateFullFit" args="fullFit,zoom">
<![CDATA[
- if ($debug) Debug.write("doUpdateFullFit ",fullFit,zoom);
-
- var actionObject = new Array();
- actionObject.push("whiteboardObj");
- actionObject.push(fullFit);
-
- this.doFullFit(fullFit);
-
- actionObject.push(this.getDisplayObject()._xscale);
-
- if ($debug) Debug.write("doUpdateFullFit ",fullFit,this.getDisplayObject()._xscale);
-
- this.onsharedMessage('whiteboardObj',actionObject);
+ if (canvas.ismoderator) {
+ if ($debug) Debug.write("doUpdateFullFit ",fullFit,zoom);
+
+ var actionObject = new Array();
+ actionObject.push("whiteboardObj");
+ actionObject.push(fullFit);
+
+ this.doFullFit(fullFit);
+
+ actionObject.push(this.getDisplayObject()._xscale);
+
+ if ($debug) Debug.write("doUpdateFullFit ",fullFit,this.getDisplayObject()._xscale);
+ this.onsharedMessage('whiteboardObj',actionObject);
+ }
]]>
</method>
@@ -94,29 +95,30 @@
<method name="doUpdateZoom" args="fullFit,zoom">
<![CDATA[
- var actionObject = new Array();
- actionObject.push("whiteboardObj");
- actionObject.push(fullFit);
- actionObject.push(zoom);
-
if ($debug) Debug.write("doUpdateZoom ",this.fullFit,zoom);
-
this.getDisplayObject()._xscale = zoom;
this.getDisplayObject()._yscale = zoom;
- this.onupdateScale.sendEvent(null);
- this.onsharedMessage('whiteboardObj',actionObject);
+ if ($debug) Debug.write("doUpdateZoom is moderator ", canvas.ismoderator);
+ if (canvas.ismoderator) {
+ var actionObject = new Array();
+ actionObject.push("whiteboardObj");
+ actionObject.push(fullFit);
+ actionObject.push(zoom);
+
+ this.onupdateScale.sendEvent(null);
+ this.onsharedMessage('whiteboardObj',actionObject);
+ }
]]>
</method>
<method name="doUpdateFullFitAndZoomRemote" args="actionObject">
<![CDATA[
-
parent.parent.zoombox.setWhiteboardValues(actionObject[1],actionObject[2]);
if ($debug) Debug.write("doUpdateFullFitAndZoomRemote ",actionObject[1],actionObject[2]);
-
+
this.doFullFit(actionObject[1]);
if (!actionObject[1]) {
Modified: openmeetings/branches/2.x/WebContent/src/modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx
URL: http://svn.apache.org/viewvc/openmeetings/branches/2.x/WebContent/src/modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx?rev=1545196&r1=1545195&r2=1545196&view=diff
==============================================================================
--- openmeetings/branches/2.x/WebContent/src/modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx (original)
+++ openmeetings/branches/2.x/WebContent/src/modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx Mon Nov 25 09:54:41 2013
@@ -209,7 +209,9 @@
<handler name="ony" args="y">
if (this.sendUpdate) {
if ($debug) Debug.write("# y",y);
- parent.parent.scrollContainer.calcScrollContent();
+ if (parent.parent.scrollContainer != null){
+ parent.parent.scrollContainer.calcScrollContent();
+ }
}
</handler>
@@ -504,8 +506,7 @@
visible="${ (parent.parent.restricted) ? false : (((canvas.ismoderator) ? false : ((canvas.isAllowedToDraw) ? false : true ))) }"/>
</view>
- <view name="zoombox" y="0" x="${ parent.parent.width-this.width-14 }" layout="axis:x;spacing:2"
- visible="${ ((canvas.ismoderator) ? true : ((canvas.isAllowedToDraw) ? true : false )) }">
+ <view name="zoombox" y="0" x="${ parent.parent.width-this.width-14 }" layout="axis:x;spacing:2">
<attribute name="ignoreUpdates" value="false" type="boolean" />
@@ -549,8 +550,7 @@
</labelCheckbox>
<changeWidthSlider name="_zoom" initialNumberInit="50"
- boxPosition="down" initialNumber="50" maximum="200"
- visible="${ ((canvas.becomemoderator) ? true : false ) }">
+ boxPosition="down" initialNumber="50" maximum="200">
<handler name="oninitialNumber" args="i">
if (parent.ignoreUpdates) {
return;
@@ -559,8 +559,7 @@
if ($debug) Debug.warn("onvalue Zoom Fit ",this.initialNumber);
parent._fullFit.setValue(false);
-
- parent.parent._drawareaMask._drawarea.doUpdateZoom(parent._fullFit.getValue(),this.initialNumber);
+ parent.parent._drawareaMask._drawarea.doUpdateZoom(parent._fullFit.getValue(),this.initialNumber);
</handler>
</changeWidthSlider>