diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-05 23:58:46 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-06 01:06:12 +0200 |
commit | 80de23d08b8021709adceac626bbac5aab45d86a (patch) | |
tree | ec9f109c8cd56be868de1f51bd59487f0f13cc5f /apps/contacts/js | |
parent | f7d221f5f0aadedf80ebb477c623612545c7be08 (diff) | |
download | nextcloud-server-80de23d08b8021709adceac626bbac5aab45d86a.tar.gz nextcloud-server-80de23d08b8021709adceac626bbac5aab45d86a.zip |
Contacts: Removed temp dir cleanup after using OC_Cache.
Diffstat (limited to 'apps/contacts/js')
-rw-r--r-- | apps/contacts/js/contacts.js | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js index 8b9a80c9520..458c9ab8fc4 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/js/contacts.js @@ -135,13 +135,7 @@ Contacts={ /* Initialize the photo edit dialog */ $('#edit_photo_dialog').dialog({ - autoOpen: false, - modal: true, - height: 'auto', width: 'auto', - beforeClose: function(event, ui) { - Contacts.UI.Card.cleanupPhoto(this); - return true; - } + autoOpen: false, modal: true, height: 'auto', width: 'auto' }); $('#edit_photo_dialog' ).dialog( 'option', 'buttons', [ { @@ -1199,15 +1193,6 @@ Contacts={ }); Contacts.UI.Contacts.refreshThumbnail(this.id); }, - cleanupPhoto:function(){ - var tmp_path = $('#cropform').find('#tmp_path').val(); - console.log('Trying to remove: ' + tmp_path); - $.post(OC.filePath('contacts', 'ajax', 'cleanupphoto.php'), {tmp_path: tmp_path}, function(data){ - if(data.status != 'success'){ - console.log('Error deleting ' + tmp_path); - } - }); - }, addMail:function() { //alert('addMail'); $('#emaillist li.template:first-child').clone(true).appendTo($('#emaillist')).show().find('a .tip').tipsy(); |