summaryrefslogtreecommitdiffstats
path: root/apps/files/templates
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-28 10:17:01 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-28 10:18:31 +0100
commit24a08c686df393e41fca251776ce0a414d75976f (patch)
tree82fb5d0d3ab3b3620519f5b317e54bf545f4e079 /apps/files/templates
parentf23d641b82b0b8f2834983800b3520fcadf6bd71 (diff)
downloadnextcloud-server-24a08c686df393e41fca251776ce0a414d75976f.tar.gz
nextcloud-server-24a08c686df393e41fca251776ce0a414d75976f.zip
New file box now has default file name + extension
Whenever a user creates a file or folder in the web UI, the input field will contain a default file name, pre-selected up to the extension for easier typing. The purpose is mostly to prevent users creating text files without an extension. Fixes #6045
Diffstat (limited to 'apps/files/templates')
-rw-r--r--apps/files/templates/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index 4f8623573cb..bb46086a4d2 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -5,9 +5,9 @@
<a><?php p($l->t('New'));?></a>
<ul>
<li style="background-image:url('<?php p(OCP\mimetype_icon('text/plain')) ?>')"
- data-type='file'><p><?php p($l->t('Text file'));?></p></li>
+ data-type='file' data-newname='<?php p($l->t('New text file.txt')) ?>'><p><?php p($l->t('Text file'));?></p></li>
<li style="background-image:url('<?php p(OCP\mimetype_icon('dir')) ?>')"
- data-type='folder'><p><?php p($l->t('Folder'));?></p></li>
+ data-type='folder' data-newname='<?php p($l->t('New folder')) ?>'><p><?php p($l->t('Folder'));?></p></li>
<li style="background-image:url('<?php p(OCP\image_path('core', 'places/link.svg')) ?>')"
data-type='web'><p><?php p($l->t('From link'));?></p></li>
</ul>