diff options
author | Maxence Lange <maxence@pontapreta.net> | 2017-02-08 13:24:51 +0300 |
---|---|---|
committer | Maxence Lange <maxence@pontapreta.net> | 2017-02-08 13:24:51 +0300 |
commit | ff0d6778c3ca51b6979aa828f3fc3bfbba6fe373 (patch) | |
tree | 19dc6f66c8d2eeaa31b36b6c68506d79f07b989c /js | |
parent | 283accd02fd2f884d3aa5e7705fa97aa9b89cfa2 (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.js | 35 |
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) |