1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Fix Scrutinizer issues

This commit is contained in:
jbtbnl 2014-08-26 23:20:29 +02:00
parent 0129e59024
commit 65966d2888

View File

@ -372,11 +372,11 @@ OC.Contacts = OC.Contacts || {};
self.addressBooks.splice(self.addressBooks.indexOf(addressBook), 1); self.addressBooks.splice(self.addressBooks.indexOf(addressBook), 1);
}); });
$('#oc-import-nocontact').unbind('click').click(function(event) { $('#oc-import-nocontact').unbind('click').click(function(event) {
console.log("triggered", event); console.log('triggered', event);
self.importDialog(); self.importDialog();
}); });
$('#import-contacts').unbind('click').click(function() { $('#import-contacts').unbind('click').click(function() {
console.log("Import clicked"); console.log('Import clicked');
self.importDialog(); self.importDialog();
}); });
}; };
@ -408,7 +408,7 @@ OC.Contacts = OC.Contacts || {};
self.openImportDialog(); self.openImportDialog();
} }
}); });
} };
AddressBookList.prototype.openImportDialog = function() { AddressBookList.prototype.openImportDialog = function() {
this.$importIntoSelect = $('#contacts-import-into'); this.$importIntoSelect = $('#contacts-import-into');
@ -445,7 +445,7 @@ OC.Contacts = OC.Contacts || {};
}); });
var $import_into = $('#contacts-import-into'); var $import_into = $('#contacts-import-into');
$import_into.change(function() { $import_into.change(function() {
if ($(this).val() != '-1') { if ($(this).val() !== '-1') {
var url = OC.generateUrl( var url = OC.generateUrl(
'apps/contacts/addressbook/{backend}/{addressBookId}/{importType}/import/upload', 'apps/contacts/addressbook/{backend}/{addressBookId}/{importType}/import/upload',
{ {
@ -492,7 +492,7 @@ OC.Contacts = OC.Contacts || {};
console.log('status.contacts.error', response); console.log('status.contacts.error', response);
} }
}); });
} };
AddressBookList.prototype.count = function() { AddressBookList.prototype.count = function() {
return this.addressBooks.length; return this.addressBooks.length;