Skip to content
Snippets Groups Projects
Commit 7ce34814 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

response type mismatch in tags

parent 99e256b7
No related merge requests found
...@@ -174,14 +174,14 @@ function refreshTagList(target, loggedin) { ...@@ -174,14 +174,14 @@ function refreshTagList(target, loggedin) {
var recordSource = $(target).find('.hiddenSource').val(); var recordSource = $(target).find('.hiddenSource').val();
var $tagList = $(target).find('.tagList'); var $tagList = $(target).find('.tagList');
if ($tagList.length > 0) { if ($tagList.length > 0) {
$tagList.empty();
var url = VuFind.getPath() + '/AJAX/JSON?' + $.param({method:'getRecordTags',id:recordId,'source':recordSource}); var url = VuFind.getPath() + '/AJAX/JSON?' + $.param({method:'getRecordTags',id:recordId,'source':recordSource});
$.ajax({ $.ajax({
dataType: 'json', dataType: 'html',
url: url url: url
}) })
.done(function(response) { .done(function(response) {
$tagList.replaceWith(response.responseText); $tagList.empty();
$tagList.replaceWith(response);
if(loggedin) { if(loggedin) {
$tagList.addClass('loggedin'); $tagList.addClass('loggedin');
} else { } else {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment