diff --git a/themes/bootstrap3/js/lightbox.js b/themes/bootstrap3/js/lightbox.js index 26900eac3e9762bacf3317be1d09f97f84a44df7..829aa9d2eba21473e8dd8286138f1f50bfe50206 100644 --- a/themes/bootstrap3/js/lightbox.js +++ b/themes/bootstrap3/js/lightbox.js @@ -526,8 +526,8 @@ $(document).ready(function() { return Lightbox.get('Search','Email',{url:document.URL}); }); // Save record links - $('.save-record').click(function() { + $('.result .save-record').click(function() { var parts = this.href.split('/'); - return Lightbox.get(parts[parts.length-3],'Save',{id:$(this).attr('id')}); + return Lightbox.get(parts[parts.length-3],'Save',{id:$(this).attr('data-id')}); }); }); \ No newline at end of file diff --git a/themes/bootstrap3/templates/RecordDriver/SolrDefault/result-list.phtml b/themes/bootstrap3/templates/RecordDriver/SolrDefault/result-list.phtml index 120c3a1675658a957287b27a53976d8ff0689e50..0c0a1a5ded74a709c0b2feb3d63647ae88ad33a4 100644 --- a/themes/bootstrap3/templates/RecordDriver/SolrDefault/result-list.phtml +++ b/themes/bootstrap3/templates/RecordDriver/SolrDefault/result-list.phtml @@ -156,7 +156,7 @@ <? if ($this->userlist()->getMode() !== 'disabled'): ?> <? /* Add to favorites */ ?> - <i class="fa fa-fw fa-star"></i> <a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Save')?>" class="save-record modal-link" id="<?=$this->driver->getUniqueId() ?>" title="<?=$this->transEsc('Add to favorites')?>"><?=$this->transEsc('Add to favorites')?></a><br/> + <i class="fa fa-fw fa-star"></i> <a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Save')?>" class="save-record modal-link" data-id="<?=$this->driver->getUniqueId() ?>" title="<?=$this->transEsc('Add to favorites')?>"><?=$this->transEsc('Add to favorites')?></a><br/> <? /* Saved lists */ ?> <div class="savedLists alert alert-info hidden">