From 2ee8425295affcc5a5632d2f7ea17c66e539b3be Mon Sep 17 00:00:00 2001
From: kondou <kondou@ts.unde.re>
Date: Sat, 17 Aug 2013 12:07:58 +0200
Subject: Remove cancel button from filepicker

Having the cancel button in the bottom right corner was a bit confusing.
It's useless anyways, since there's a X in the top right.
---
 core/js/oc-dialogs.js | 4 ----
 1 file changed, 4 deletions(-)

(limited to 'core/js/oc-dialogs.js')

diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index f4bc174b5eb..5cbc8359d52 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -117,10 +117,6 @@ var OCdialogs = {
 				text: t('core', 'Choose'),
 				click: functionToCall,
 				defaultButton: true
-				},
-				{
-				text: t('core', 'Cancel'),
-				click: function(){self.$filePicker.ocdialog('close'); }
 			}];
 
 			self.$filePicker.ocdialog({
-- 
cgit v1.2.3