summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-01 18:44:01 +0200
committerkondou <kondou@ts.unde.re>2013-08-01 18:44:01 +0200
commit1348330c7d75d2b60d845a43be57dedc6199ea1a (patch)
tree87f0ffda7f1b173641fc56500e055ce6abe04336 /core
parentaaf0fec9f54bc6f9eef5df00441d593e053ee74b (diff)
downloadnextcloud-server-1348330c7d75d2b60d845a43be57dedc6199ea1a.tar.gz
nextcloud-server-1348330c7d75d2b60d845a43be57dedc6199ea1a.zip
Fix a syntax error & have if-conds in an own line
Diffstat (limited to 'core')
-rw-r--r--core/js/oc-dialogs.js28
1 files changed, 21 insertions, 7 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 04fc43af001..b3b1958659f 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -79,9 +79,15 @@ var OCdialogs = {
title: title
}).data('path', '');
- if (modal === undefined) { modal = false; }
- if (multiselect === undefined) { multiselect = false; }
- if (mimetype_filter === undefined) { mimetype_filter = ''; }
+ if (modal === undefined) {
+ modal = false;
+ }
+ if (multiselect === undefined) {
+ multiselect = false;
+ }
+ if (mimetype_filter === undefined) {
+ mimetype_filter = '';
+ }
$('body').append(self.$filePicker);
@@ -155,7 +161,9 @@ var OCdialogs = {
message: content,
type: dialog_type
});
- if (modal === undefined) { modal = false; }
+ if (modal === undefined) {
+ modal = false;
+ }
$('body').append($dlg);
var buttonlist = [];
switch (buttons) {
@@ -163,7 +171,9 @@ var OCdialogs = {
buttonlist = [{
text: t('core', 'Yes'),
click: function(){
- if (callback !== undefined) { callback(true); }
+ if (callback !== undefined) {
+ callback(true);
+ }
$(dialog_id).ocdialog('close');
},
defaultButton: true
@@ -171,7 +181,9 @@ var OCdialogs = {
{
text: t('core', 'No'),
click: function(){
- if (callback !== undefined) { callback(false); }
+ if (callback !== undefined) {
+ callback(false);
+ }
$(dialog_id).ocdialog('close');
}
}];
@@ -179,7 +191,9 @@ var OCdialogs = {
case OCdialogs.OK_BUTTON:
var functionToCall = function() {
$(dialog_id).ocdialog('close');
- if(callback !== undefined) { callback(); }
+ if(callback !== undefined) {
+ callback();
+ }
};
buttonlist[0] = {
text: t('core', 'Ok'),