|
From: <chr...@us...> - 2011-07-03 13:04:55
|
Revision: 376
http://openautomation.svn.sourceforge.net/openautomation/?rev=376&view=rev
Author: chris_ace
Date: 2011-07-03 13:04:49 +0000 (Sun, 03 Jul 2011)
Log Message:
-----------
Add certain iframe style attributes
Modified Paths:
--------------
CometVisu/trunk/visu/designs/structure_pure.js
CometVisu/trunk/visu/visu_config.xsd
Modified: CometVisu/trunk/visu/designs/structure_pure.js
===================================================================
--- CometVisu/trunk/visu/designs/structure_pure.js 2011-06-26 09:03:25 UTC (rev 375)
+++ CometVisu/trunk/visu/designs/structure_pure.js 2011-07-03 13:04:49 UTC (rev 376)
@@ -611,15 +611,21 @@
var style = '';
if( $p.attr('width' ) ) style += 'width:' + $p.attr('width' ) + ';';
if( $p.attr('height') ) style += 'height:' + $p.attr('height') + ';';
+ if( $p.attr('allowtransparency') == 0 ) style += 'allowTransparency: false ;';
+ if( $p.attr('frameborder') == 0 ) style += 'border: 0px ;';
+ if( $p.attr('background') ) style += 'background-color:' + $p.attr('background') + ';';
if( style != '' ) style = 'style="' + style + '"';
var actor = '<div class="actor"><iframe src="' +$p.attr('src') + '" ' + style + '></iframe></div>';
ret_val.append( $(actor) );
return ret_val;
},
attributes: {
- src: { type: 'uri' , required: true },
- width: { type: 'string', required: false },
- height: { type: 'string', required: false }
+ src: { type: 'uri' , required: true },
+ width: { type: 'string', required: false },
+ height: { type: 'string', required: false },
+ allowtransparency: { type: 'numeric', required: false },
+ frameborder: { type: 'numeric', required: false },
+ background: { type: 'string', required: false }
},
elements: {
label: { type: 'string', required: false, multi: false }
Modified: CometVisu/trunk/visu/visu_config.xsd
===================================================================
--- CometVisu/trunk/visu/visu_config.xsd 2011-06-26 09:03:25 UTC (rev 375)
+++ CometVisu/trunk/visu/visu_config.xsd 2011-07-03 13:04:49 UTC (rev 376)
@@ -329,9 +329,12 @@
<xsd:choice maxOccurs="unbounded" minOccurs="0">
<xsd:element name="label" type="xsd:string" maxOccurs="1" />
</xsd:choice>
- <xsd:attribute name="src" type="uri" use="required" />
+ <xsd:attribute name="src" type="uri" use="required" />
<xsd:attribute name="width" type="dimension" />
<xsd:attribute name="height" type="dimension" />
+ <xsd:attribute name="allowtransparency" type="xsd:bool" />
+ <xsd:attribute name="frameborder" type="xsd:bool" />
+ <xsd:attribute name="background" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="colorchooser" >
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|