mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-19 08:52:22 +01:00
Correct path to ajax file.
This commit is contained in:
parent
c106e0e91d
commit
3996dfa330
@ -20,7 +20,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once 'loghandler.php';
|
require_once __DIR__.'/../loghandler.php';
|
||||||
|
|
||||||
// Check if we are a user
|
// Check if we are a user
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
@ -31,7 +31,7 @@ if(is_null($id)) {
|
|||||||
bailOut(OC_Contacts_App::$l10n->t('Missing ID'));
|
bailOut(OC_Contacts_App::$l10n->t('Missing ID'));
|
||||||
}
|
}
|
||||||
$card = OC_Contacts_VCard::find($id);
|
$card = OC_Contacts_VCard::find($id);
|
||||||
$vcard = OC_Contacts_App::getContactVCard( $id );
|
$vcard = OC_VObject::parse($card['carddata']);
|
||||||
if(is_null($vcard)) {
|
if(is_null($vcard)) {
|
||||||
bailOut(OC_Contacts_App::$l10n->t('Error parsing VCard for ID: "'.$id.'"'));
|
bailOut(OC_Contacts_App::$l10n->t('Error parsing VCard for ID: "'.$id.'"'));
|
||||||
}
|
}
|
||||||
|
@ -348,7 +348,7 @@ OC.Contacts={
|
|||||||
console.log('newid: ' + newid + ' bookid: ' +bookid);
|
console.log('newid: ' + newid + ' bookid: ' +bookid);
|
||||||
var localLoadContact = function(newid, bookid) {
|
var localLoadContact = function(newid, bookid) {
|
||||||
if($('.contacts li').length > 0) {
|
if($('.contacts li').length > 0) {
|
||||||
$.getJSON(OC.filePath('contacts', 'ajax', 'contactdetails.php'),{'id':newid},function(jsondata){
|
$.getJSON(OC.filePath('contacts', 'ajax', 'contact/details.php'),{'id':newid},function(jsondata){
|
||||||
if(jsondata.status == 'success'){
|
if(jsondata.status == 'success'){
|
||||||
if(bookid == 'unknown') {
|
if(bookid == 'unknown') {
|
||||||
bookid = jsondata.data.addressbookid;
|
bookid = jsondata.data.addressbookid;
|
||||||
@ -1783,7 +1783,7 @@ $(document).ready(function(){
|
|||||||
$('#contacts h3[data-id="'+bookid+'"]').addClass('active');
|
$('#contacts h3[data-id="'+bookid+'"]').addClass('active');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$.getJSON(OC.filePath('contacts', 'ajax', 'contactdetails.php'),{'id':id},function(jsondata){
|
$.getJSON(OC.filePath('contacts', 'ajax', 'contact/details.php'),{'id':id},function(jsondata){
|
||||||
if(jsondata.status == 'success'){
|
if(jsondata.status == 'success'){
|
||||||
OC.Contacts.Card.loadContact(jsondata.data, bookid);
|
OC.Contacts.Card.loadContact(jsondata.data, bookid);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user