summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-05-20 09:54:43 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-05-20 09:54:43 +0200
commit38b2d0a8229439ea4641e39fcd9275cbf82680ee (patch)
treea6ab61f82ff3f29b74112b766daf7b9e7d75a519 /core
parent27a5132b46df56dae81799e05bfeeaff27f2e4bb (diff)
downloadnextcloud-server-38b2d0a8229439ea4641e39fcd9275cbf82680ee.tar.gz
nextcloud-server-38b2d0a8229439ea4641e39fcd9275cbf82680ee.zip
Remove more obsolete code.
Diffstat (limited to 'core')
-rw-r--r--core/js/oc-dialogs.js24
1 files changed, 4 insertions, 20 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 316a99592f5..e1d3657724e 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -173,22 +173,10 @@ var OCdialogs = {
}];
break;
case OCdialogs.OK_BUTTON:
- var functionToCall;
- switch(dialog_type) {
- case 'prompt':
- buttonlist[1] = {
- text: t('core', 'Cancel'),
- click: function() { $(dialog_id).dialog('close'); }
- };
- functionToCall = function() { OCdialogs._promptOkHandler(callback, dialog_id); };
- break;
- default:
- functionToCall = function() {
- $(dialog_id).dialog('close');
- if(callback !== undefined) { callback() };
- };
- break;
- }
+ var functionToCall = function() {
+ $(dialog_id).dialog('close');
+ if(callback !== undefined) { callback() };
+ };
buttonlist[0] = {
text: t('core', 'Ok'),
click: functionToCall
@@ -254,10 +242,6 @@ var OCdialogs = {
}
},
- _promptOkHandler: function(callback, dialog_id) {
- $(dialog_id).dialog('close');
- if (callback !== undefined) { callback($(dialog_id + ' input#oc-dialog-prompt-input').val()) };
- },
/**
* fills the filepicker with files
*/