diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-06-02 21:52:59 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-06-02 21:52:59 +0200 |
commit | 901b1150ffcdb3f541d6843221ba4ee3fb617751 (patch) | |
tree | f21c7f45520cdf3edd7334abecba19890c8ed7a3 /core/js/oc-dialogs.js | |
parent | cf71a54f5d6e08020a1a574d43f7fca6642776c9 (diff) | |
download | nextcloud-server-901b1150ffcdb3f541d6843221ba4ee3fb617751.tar.gz nextcloud-server-901b1150ffcdb3f541d6843221ba4ee3fb617751.zip |
Replacement for jquery.dialog to fit better with ownCloud design.
Diffstat (limited to 'core/js/oc-dialogs.js')
-rw-r--r-- | core/js/oc-dialogs.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index e1d3657724e..a6a9e7e57e2 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -72,7 +72,7 @@ var OCdialogs = { var dialog_name = 'oc-dialog-filepicker-content'; var dialog_id = '#' + dialog_name; if(self.$filePicker) { - self.$filePicker.dialog('close'); + self.$filePicker.ocdialog('close'); } self.$filePicker = $tmpl.octemplate({ dialog_name: dialog_name, @@ -110,7 +110,7 @@ var OCdialogs = { datapath += '/' + self.$filelist.find('.filepicker_element_selected .filename').text(); } callback(datapath); - self.$filePicker.dialog('close'); + self.$filePicker.ocdialog('close'); } }; var buttonlist = [{ @@ -119,17 +119,17 @@ var OCdialogs = { }, { text: t('core', 'Cancel'), - click: function(){self.$filePicker.dialog('close'); } + click: function(){self.$filePicker.ocdialog('close'); } }]; - self.$filePicker.dialog({ + self.$filePicker.ocdialog({ closeOnEscape: true, width: (4/9)*$(document).width(), height: 420, modal: modal, buttons: buttonlist, close: function(event, ui) { - self.$filePicker.dialog('destroy').remove(); + self.$filePicker.ocdialog('destroy').remove(); self.$filePicker = null; } }); @@ -161,20 +161,20 @@ var OCdialogs = { text: t('core', 'Yes'), click: function(){ if (callback !== undefined) { callback(true) }; - $(dialog_id).dialog('close'); + $(dialog_id).ocdialog('close'); } }, { text: t('core', 'No'), click: function(){ if (callback !== undefined) { callback(false) }; - $(dialog_id).dialog('close'); + $(dialog_id).ocdialog('close'); } }]; break; case OCdialogs.OK_BUTTON: var functionToCall = function() { - $(dialog_id).dialog('close'); + $(dialog_id).ocdialog('close'); if(callback !== undefined) { callback() }; }; buttonlist[0] = { @@ -184,7 +184,7 @@ var OCdialogs = { break; }; - $(dialog_id).dialog({ + $(dialog_id).ocdialog({ closeOnEscape: true, modal: modal, buttons: buttonlist |