[cmclasses] r918 committed - Extended HTML page frame by addScript method to insert JavaScript.

0 views
Skip to first unread message

cmcl...@googlecode.com

unread,
Jan 31, 2012, 1:37:13 AM1/31/12
to cmcl...@googlegroups.com
Revision: 918
Author: christian.wuerker
Date: Mon Jan 30 22:25:50 2012
Log: Extended HTML page frame by addScript method to insert JavaScript.

http://code.google.com/p/cmclasses/source/detail?r=918

Modified:
/trunk/src/UI/HTML/PageFrame.php5

=======================================
--- /trunk/src/UI/HTML/PageFrame.php5 Tue Nov 22 16:14:43 2011
+++ /trunk/src/UI/HTML/PageFrame.php5 Mon Jan 30 22:25:50 2012
@@ -145,6 +145,10 @@
);
$this->metaTags[strtolower( $type.":".$key )] = $metaData;
}
+
+ public function addScript( $script, $type = "text/javascript" ){
+ $this->addHead( UI_HTML_Tag::create( 'script', $script, array( 'type' =>
$type ) ) );
+ }

/**
* Adds a Stylesheet Link to Head.

Reply all
Reply to author
Forward
0 new messages