1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-19 08:52:22 +01:00

Delete localeStorage entry on address book deletion

This commit is contained in:
Thomas Tanghus 2014-03-11 12:58:57 +01:00
parent cbb7b0db8f
commit 2e9f7e6157

View File

@ -141,13 +141,11 @@ OC.Contacts = OC.Contacts || {};
* @param string addressBookId Address book ID * @param string addressBookId Address book ID
*/ */
Storage.prototype.deleteAddressBook = function(backend, addressBookId) { Storage.prototype.deleteAddressBook = function(backend, addressBookId) {
/* https://github.com/owncloud/core/pull/7652 var key = 'contacts::' + backend + '::' + addressBookId;
* var key = 'contacts::' + backend + '::' + addressBookId;
if(OC.localStorage.hasItem(key)) { if(OC.localStorage.hasItem(key)) {
OC.localStorage.removeItem(key); OC.localStorage.removeItem(key);
} }
*/
console.log('Storage.deleteAddressBook', backend, addressBookId); console.log('Storage.deleteAddressBook', backend, addressBookId);
return this.requestRoute( return this.requestRoute(