summaryrefslogtreecommitdiffstats
path: root/core/js/share.js
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-10-18 10:36:08 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-10-18 10:39:02 +0200
commit0febccee49faa63beff1de253957a193a904fd4a (patch)
tree75025e6389cc16abb10e94772535095a4a8dd2b5 /core/js/share.js
parent7f9ff51308eaa2a32314bf45198487e479500b9d (diff)
downloadnextcloud-server-0febccee49faa63beff1de253957a193a904fd4a.tar.gz
nextcloud-server-0febccee49faa63beff1de253957a193a904fd4a.zip
readability: single line -> multiple lines
Diffstat (limited to 'core/js/share.js')
-rw-r--r--core/js/share.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 12c35511fbf..25126d3c230 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -204,11 +204,17 @@ OC.Share={
html += '<ul id="shareWithList">';
html += '</ul>';
var linksAllowed = false;
- $.ajax({type: 'GET', url: OC.filePath('core', 'ajax', 'appconfig.php'), data: { action:'getValue', app:'core', key:'shareapi_allow_links', defaultValue:'yes' }, async: false, success: function(result) {
- if (result && result.status === 'success' && result.data === 'yes') {
- linksAllowed = true;
+ $.ajax({
+ type: 'GET',
+ url: OC.filePath('core', 'ajax', 'appconfig.php'),
+ data: { action:'getValue', app:'core', key:'shareapi_allow_links', defaultValue:'yes' },
+ async: false,
+ success: function(result) {
+ if (result && result.status === 'success' && result.data === 'yes') {
+ linksAllowed = true;
+ }
}
- }});
+ });
if (link && linksAllowed) {
html += '<div id="link">';
html += '<input type="checkbox" name="linkCheckbox" id="linkCheckbox" value="1" /><label for="linkCheckbox">'+t('core', 'Share with link')+'</label>';