git://git.iain.cx/iain
/
readifood.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into uat
[readifood.git]
/
lib
/
forms.php
diff --git
a/lib/forms.php
b/lib/forms.php
index
ae08607
..
c71c11f
100644
(file)
--- a/
lib/forms.php
+++ b/
lib/forms.php
@@
-30,10
+30,14
@@
}
function textarea($name, $value = null) {
}
function textarea($name, $value = null) {
- echo "<textarea name=\"$name\">";
+ $id = "textarea_$name";
+ echo "<textarea id=\"$id\" name=\"$name\" cols=30>";
if (isset($value)) echo $value;
else echo $_POST[$name];
echo "</textarea>";
if (isset($value)) echo $value;
else echo $_POST[$name];
echo "</textarea>";
+ echo "<script>\n $(function() {\n";
+ echo " $(\"#$id\").autosize();\n";
+ echo " });</script>";
}
function option($select, $value, $text, $selected = null) {
}
function option($select, $value, $text, $selected = null) {