[Pkg-owncloud-commits] [owncloud] 37/70: Improved external share dialog
David Prévot
taffit at moszumanska.debian.org
Mon Jul 14 17:38:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 60e3195600c0432048ccf7921584c878aaab2371
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Mon Jul 7 15:57:26 2014 +0200
Improved external share dialog
Changed title, label and buttons.
Removed icon.
---
apps/files_sharing/js/external.js | 35 +++++++++++++++++++++++++++++++----
1 file changed, 31 insertions(+), 4 deletions(-)
diff --git a/apps/files_sharing/js/external.js b/apps/files_sharing/js/external.js
index 969a2b1..e743d2e 100644
--- a/apps/files_sharing/js/external.js
+++ b/apps/files_sharing/js/external.js
@@ -42,13 +42,40 @@
}
};
if (!passwordProtected) {
- OC.dialogs.confirm(t('files_sharing', 'Add {name} from {owner}@{remote}', {name: name, owner: owner, remote: remoteClean})
- , t('files_sharing','Add Share'), callback, true);
+ OC.dialogs.confirm(
+ t(
+ 'files_sharing',
+ 'Do you want to add the remote share {name} from {owner}@{remote}?',
+ {name: name, owner: owner, remote: remoteClean}
+ ),
+ t('files_sharing','Remote share'),
+ callback,
+ true
+ ).then(this._adjustDialog);
} else {
- OC.dialogs.prompt(t('files_sharing', 'Add {name} from {owner}@{remote}', {name: name, owner: owner, remote: remoteClean})
- , t('files_sharing','Add Share'), callback, true, t('files_sharing','Password'), true);
+ OC.dialogs.prompt(
+ t(
+ 'files_sharing',
+ 'Do you want to add the remote share {name} from {owner}@{remote}?',
+ {name: name, owner: owner, remote: remoteClean}
+ ),
+ t('files_sharing','Remote share'),
+ callback,
+ true,
+ t('files_sharing','Remote share password'),
+ true
+ ).then(this._adjustDialog);
}
};
+
+ OCA.Sharing._adjustDialog = function() {
+ var $dialog = $('.oc-dialog:visible');
+ var $buttons = $dialog.find('button');
+ // hack the buttons
+ $dialog.find('.ui-icon').remove();
+ $buttons.eq(0).text(t('core', 'Cancel'));
+ $buttons.eq(1).text(t('core', 'Add remote share'));
+ };
})();
$(document).ready(function () {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list