aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_texteditor
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-01-09 17:22:51 +0000
committerTom Needham <needham.thomas@gmail.com>2012-01-09 17:22:51 +0000
commit19186bf37b131c76146b27f15c337c49e54d42cd (patch)
tree88196c9db550971736532cce416824ca873714c1 /apps/files_texteditor
parent18b8dc1c2120b7d7ab6e4a7f23c33a6019e1587b (diff)
downloadnextcloud-server-19186bf37b131c76146b27f15c337c49e54d42cd.tar.gz
nextcloud-server-19186bf37b131c76146b27f15c337c49e54d42cd.zip
hide save button for read-only files
Diffstat (limited to 'apps/files_texteditor')
-rw-r--r--apps/files_texteditor/js/editor.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js
index 3c1e1542806..664dd0f1e6e 100644
--- a/apps/files_texteditor/js/editor.js
+++ b/apps/files_texteditor/js/editor.js
@@ -54,11 +54,14 @@ function setSyntaxMode(ext){
}
}
-function showControls(filename){
+function showControls(filename,writeperms){
// Loads the control bar at the top.
$('.actions,#file_action_panel').fadeOut('slow').promise().done(function() {
// Load the new toolbar.
- var savebtnhtml = '<input type="button" id="editor_save" value="'+t('files_texteditor','Save')+'">';
+ var savebtnhtml;
+ if(writeperms=="true"){
+ var savebtnhtml = '<input type="button" id="editor_save" value="'+t('files_texteditor','Save')+'">';
+ }
var html = '<input type="button" id="editor_close" value="Close">';
$('#controls').append(html);
$('#editorbar').fadeIn('slow');
@@ -134,7 +137,7 @@ function showFileEditor(dir,filename){
// Save mtime
$('#editor').attr('data-mtime', result.data.mtime);
// Initialise the editor
- showControls(filename);
+ showControls(filename,result.data.write);
$('table').fadeOut('slow', function() {
$('#editor').text(result.data.filecontents);
$('#editor').attr('data-dir', dir);
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# 
# Translators:
# Rivo Zängov <eraser@eraser.ee>, 2011, 2012.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2012-08-31 02:02+0200\n"
"PO-Revision-Date: 2012-08-31 00:03+0000\n"
"Last-Translator: I Robot <thomas.mueller@tmit.eu>\n"
"Language-Team: Estonian (Estonia) (http://www.transifex.com/projects/p/owncloud/language/et_EE/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: et_EE\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"

#: ajax/vcategories/add.php:23 ajax/vcategories/delete.php:23
msgid "Application name not provided."
msgstr "Rakenduse nime pole sisestatud."

#: ajax/vcategories/add.php:29
msgid "No category to add?"
msgstr "Pole kategooriat, mida lisada?"

#: ajax/vcategories/add.php:36
msgid "This category already exists: "
msgstr "See kategooria on juba olemas: "

#: js/jquery-ui-1.8.16.custom.min.js:511
msgid "ui-datepicker-group';if(i[1]>1)switch(G){case 0:y+="
msgstr "ui-datepicker-group';if(i[1]>1)switch(G){case 0:y+="

#: js/js.js:206 templates/layout.user.php:60 templates/layout.user.php:61
msgid "Settings"
msgstr "Seaded"

#: js/js.js:591
msgid "January"
msgstr "Jaanuar"

#: js/js.js:591
msgid "February"
msgstr "Veebruar"

#: js/js.js:591
msgid "March"
msgstr "Märts"

#: js/js.js:591
msgid "April"
msgstr "Aprill"

#: js/js.js:591
msgid "May"
msgstr "Mai"

#: js/js.js:591
msgid "June"
msgstr "Juuni"

#: js/js.js:592
msgid "July"
msgstr "Juuli"

#: js/js.js:592
msgid "August"
msgstr "August"

#: js/js.js:592
msgid "September"
msgstr "September"

#: js/js.js:592
msgid "October"
msgstr "Oktoober"

#: js/js.js:592
msgid "November"
msgstr "November"

#: js/js.js:592
msgid "December"
msgstr "Detsember"

#: js/oc-dialogs.js:143 js/oc-dialogs.js:163
msgid "Cancel"
msgstr "Loobu"

#: js/oc-dialogs.js:159
msgid "No"
msgstr "Ei"

#: js/oc-dialogs.js:160
msgid "Yes"
msgstr "Jah"

#: js/oc-dialogs.js:177
msgid "Ok"
msgstr "Ok"

#: js/oc-vcategories.js:68
msgid "No categories selected for deletion."
msgstr "Kustutamiseks pole kategooriat valitud."

#: js/oc-vcategories.js:68
msgid "Error"
msgstr "Viga"

#: lostpassword/index.php:26
msgid "ownCloud password reset"
msgstr "ownCloud parooli taastamine"

#: lostpassword/templates/email.php:1
msgid "Use the following link to reset your password: {link}"
msgstr "Kasuta järgnevat linki oma parooli taastamiseks: {link}"

#: lostpassword/templates/lostpassword.php:3
msgid "You will receive a link to reset your password via Email."
msgstr "Sinu parooli taastamise link saadetakse sulle e-postile."

#: lostpassword/templates/lostpassword.php:5
msgid "Requested"
msgstr "Kohustuslik"

#: lostpassword/templates/lostpassword.php:8
msgid "Login failed!"
msgstr "Sisselogimine ebaõnnestus!"

#: lostpassword/templates/lostpassword.php:11 templates/installation.php:26
#: templates/login.php:9
msgid "Username"
msgstr "Kasutajanimi"

#: lostpassword/templates/lostpassword.php:15
msgid "Request reset"
msgstr "Päringu taastamine"

#: lostpassword/templates/resetpassword.php:4
msgid "Your password was reset"
msgstr "Sinu parool on taastatud"

#: lostpassword/templates/resetpassword.php:5
msgid "To login page"
msgstr "Sisselogimise lehele"

#: lostpassword/templates/resetpassword.php:8
msgid "New password"
msgstr "Uus parool"

#: lostpassword/templates/resetpassword.php:11
msgid "Reset password"
msgstr "Nulli parool"

#: strings.php:5
msgid "Personal"
msgstr "isiklik"

#: strings.php:6
msgid "Users"
msgstr "Kasutajad"

#: strings.php:7
msgid "Apps"
msgstr "Programmid"

#: strings.php:8
msgid "Admin"
msgstr "Admin"

#: strings.php:9
msgid "Help"
msgstr "Abiinfo"

#: templates/403.php:12
msgid "Access forbidden"
msgstr "Ligipääs on keelatud"

#: templates/404.php:12
msgid "Cloud not found"
msgstr "Pilve ei leitud"

#: templates/edit_categories_dialog.php:4
msgid "Edit categories"
msgstr "Muuda kategooriaid"

#: templates/edit_categories_dialog.php:14
msgid "Add"
msgstr "Lisa"

#: templates/installation.php:24
msgid "Create an <strong>admin account</strong>"
msgstr "Loo <strong>admini konto</strong>"

#: templates/installation.php:30 templates/login.php:13
msgid "Password"
msgstr "Parool"

#: templates/installation.php:36
msgid "Advanced"
msgstr "Lisavalikud"

#: templates/installation.php:38
msgid "Data folder"
msgstr "Andmete kaust"

#: templates/installation.php:45
msgid "Configure the database"
msgstr "Seadista andmebaasi"

#: templates/installation.php:50 templates/installation.php:61
#: templates/installation.php:71 templates/installation.php:81
msgid "will be used"
msgstr "kasutatakse"

#: templates/installation.php:93
msgid "Database user"
msgstr "Andmebaasi kasutaja"

#: templates/installation.php:97
msgid "Database password"
msgstr "Andmebaasi parool"

#: templates/installation.php:101
msgid "Database name"
msgstr "Andmebasi nimi"

#: templates/installation.php:109
msgid "Database tablespace"
msgstr ""

#: templates/installation.php:115
msgid "Database host"
msgstr "Andmebaasi host"

#: templates/installation.php:120
msgid "Finish setup"
msgstr "Lõpeta seadistamine"

#: templates/layout.guest.php:42
msgid "web services under your control"
msgstr "veebiteenused sinu kontrolli all"

#: templates/layout.user.php:45
msgid "Log out"
msgstr "Logi välja"

#: templates/login.php:6
msgid "Lost your password?"
msgstr "Kaotasid oma parooli?"

#: templates/login.php:17
msgid "remember"
msgstr "pea meeles"

#: templates/login.php:18
msgid "Log in"
msgstr "Logi sisse"

#: templates/logout.php:1
msgid "You are logged out."
msgstr "Sa oled välja loginud"

#: templates/part.pagenavi.php:3
msgid "prev"
msgstr "eelm"

#: templates/part.pagenavi.php:20
msgid "next"
msgstr "järgm"