aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-25 22:42:07 -0700
committerfriendica <info@friendica.com>2014-05-25 22:42:07 -0700
commit810515f1a10082ac7bc75550089ce9c40b44b003 (patch)
tree7155e99b5a5b67f18cb7299ea593094bab5baaac
parent03e2d2ee8f048faa3328a2fdbb6c252726284db4 (diff)
downloadvolse-hubzilla-810515f1a10082ac7bc75550089ce9c40b44b003.tar.gz
volse-hubzilla-810515f1a10082ac7bc75550089ce9c40b44b003.tar.bz2
volse-hubzilla-810515f1a10082ac7bc75550089ce9c40b44b003.zip
auto-highlight app embed code on click
-rw-r--r--mod/appman.php2
-rwxr-xr-xview/tpl/field_textarea.tpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/appman.php b/mod/appman.php
index a782cb0eb..0cc108079 100644
--- a/mod/appman.php
+++ b/mod/appman.php
@@ -77,7 +77,7 @@ logger('content');
);
if($r)
$app = $r[0];
- $embed = array('embed', t('Embed code'), app_encode($app,true),'');
+ $embed = array('embed', t('Embed code'), app_encode($app,true),'', 'onclick="this.select();"');
}
diff --git a/view/tpl/field_textarea.tpl b/view/tpl/field_textarea.tpl
index 98be8f138..b454045c0 100755
--- a/view/tpl/field_textarea.tpl
+++ b/view/tpl/field_textarea.tpl
@@ -1,5 +1,5 @@
<div class='field textarea'>
<label for='id_{{$field.0}}'>{{$field.1}}</label>
- <textarea name='{{$field.0}}' id='id_{{$field.0}}'>{{$field.2}}</textarea>
+ <textarea name='{{$field.0}}' id='id_{{$field.0}}' {{if $field.4}}{{$field.4}}{{/if}} >{{$field.2}}</textarea>
<span class='field_help'>{{$field.3}}</span>
</div>