Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/orcid.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMaxence Lange <maxence@pontapreta.net>2017-02-08 13:24:51 +0300
committerMaxence Lange <maxence@pontapreta.net>2017-02-08 13:24:51 +0300
commitff0d6778c3ca51b6979aa828f3fc3bfbba6fe373 (patch)
tree19dc6f66c8d2eeaa31b36b6c68506d79f07b989c /js
parent283accd02fd2f884d3aa5e7705fa97aa9b89cfa2 (diff)
About Orcid popup
displaying info about Orcid when user clicks the ORCID title in the personal settings page
Diffstat (limited to 'js')
-rw-r--r--js/personal.js35
1 files changed, 13 insertions, 22 deletions
diff --git a/js/personal.js b/js/personal.js
index d8b8934..34025d5 100644
--- a/js/personal.js
+++ b/js/personal.js
@@ -106,28 +106,19 @@ $(document)
$('.ui-helper-clearfix').css("display",
"none");
- $
- .ajax(
- OC
- .linkTo(
- 'orcid',
- 'ajax/about_orcid.php'),
- {
- type : 'GET',
- success : function(
- jsondata) {
- if (jsondata) {
- $(
- '.about-orcid')
- .html(
- jsondata.data.page);
- }
- },
- error : function(
- data) {
- alert("Unexpected error!");
- }
- });
+ $.ajax(OC.linkTo('orcid',
+ 'AboutOrcid.php'), {
+ type : 'GET',
+ success : function(jsondata) {
+ if (jsondata) {
+ $('.about-orcid').html(
+ jsondata);
+ }
+ },
+ error : function(data) {
+ alert("Unexpected error!");
+ }
+ });
});
$(document)