projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #6421 from lcdservices/CRM-16968
[civicrm-core.git]
/
ang
/
crmUtil.js
diff --git
a/ang/crmUtil.js
b/ang/crmUtil.js
index b6a0d013104490866993547922f3a2a4368b7ea1..d480279068239cb384be3ad958fa48a798d7af24 100644
(file)
--- a/
ang/crmUtil.js
+++ b/
ang/crmUtil.js
@@
-2,8
+2,8
@@
(function (angular, $, _) {
angular.module('crmUtil', []);
(function (angular, $, _) {
angular.module('crmUtil', []);
- //
usage:
- //
crmApi('Entity', 'action', {...}).then(function(apiResult){...})
+ //
Angular implementation of CRM.api3
+ //
@link http://wiki.civicrm.org/confluence/display/CRMDOC/AJAX+Interface#AJAXInterface-CRM.api3
//
// Note: To mock API results in unit-tests, override crmApi.backend, e.g.
// var apiSpy = jasmine.createSpy('crmApi');
//
// Note: To mock API results in unit-tests, override crmApi.backend, e.g.
// var apiSpy = jasmine.createSpy('crmApi');
@@
-19,7
+19,7
@@
if (_.isObject(entity)) {
// eval content is locally generated.
/*jshint -W061 */
if (_.isObject(entity)) {
// eval content is locally generated.
/*jshint -W061 */
- p = backend(eval('('+angular.toJson(entity)+')'),
message
);
+ p = backend(eval('('+angular.toJson(entity)+')'),
action
);
} else {
// eval content is locally generated.
/*jshint -W061 */
} else {
// eval content is locally generated.
/*jshint -W061 */