From 0febccee49faa63beff1de253957a193a904fd4a Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 18 Oct 2013 10:36:08 +0200 Subject: [PATCH] readability: single line -> multiple lines --- core/js/share.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/core/js/share.js b/core/js/share.js index 12c35511fb..25126d3c23 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -204,11 +204,17 @@ OC.Share={ html += ''; 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 += '