summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/I18N/TTranslateParameter.php4
-rw-r--r--framework/Web/Javascripts/extra/getElementsBySelector.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/framework/I18N/TTranslateParameter.php b/framework/I18N/TTranslateParameter.php
index f162d642..d00e33bb 100644
--- a/framework/I18N/TTranslateParameter.php
+++ b/framework/I18N/TTranslateParameter.php
@@ -28,8 +28,8 @@
* <code>
* <com:TTranslate>
* {greeting} {name}!
- * <com:TTranslateParameter Key="name">World</com:TParam>
- * <com:TTranslateParameter Key="greeting">Hello</com:TParam>
+ * <com:TTranslateParameter Key="name">World</com:TTranslateParameter>
+ * <com:TTranslateParameter Key="greeting">Hello</com:TTranslateParameter>
* </com:TTranslate>
* </code>
*
diff --git a/framework/Web/Javascripts/extra/getElementsBySelector.js b/framework/Web/Javascripts/extra/getElementsBySelector.js
index d6675cd5..592872fc 100644
--- a/framework/Web/Javascripts/extra/getElementsBySelector.js
+++ b/framework/Web/Javascripts/extra/getElementsBySelector.js
@@ -30,13 +30,13 @@ function getAllChildren(e) {
matching the CSS selector. Selectors can contain element names,
class names and ids and can be nested. For example:
- <pre><tt>elements = document.getElementsBySelect('div#main p a.external')</tt></pre>
+ <pre><tt>elements = $CSS('div#main p a.external')</tt></pre>
Will return an array of all 'a' elements with 'external' in their
class attribute that are contained inside 'p' elements that are
contained inside the 'div' element which has id="main"
*/
-document.getElementsBySelector = function(selector) {
+$CSS = function(selector) {
// Attempt to fail gracefully in lesser browsers
if (!document.getElementsByTagName) {
return new Array();