projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15cbe79
)
CRM-15417 - Show api deprecation warnings in console
author
Coleman Watts
<coleman@civicrm.org>
Fri, 10 Oct 2014 19:59:34 +0000
(15:59 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Mon, 13 Oct 2014 22:08:55 +0000
(18:08 -0400)
js/Common.js
patch
|
blob
|
blame
|
history
diff --git
a/js/Common.js
b/js/Common.js
index 13150ef23f0a3e862f3b8a6be5320e4ba0461cf7..26ae4cfaf18c5e2be58409bc7dcadb59ee368c97 100644
(file)
--- a/
js/Common.js
+++ b/
js/Common.js
@@
-941,9
+941,12
@@
CRM.strings = CRM.strings || {};
if (response.backtrace) {
CRM.console('log', response.backtrace);
}
+ if (typeof response.deprecated === 'string') {
+ CRM.console('warn', response.deprecated);
+ }
}
}
- //
Suppress errors
+ //
Ignore errors thrown by parseJSON
catch (e) {}
});