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

Prevent search result saving from breaking record view item saving.

parent 7ef32c3e
Branches
Tags
No related merge requests found
...@@ -526,8 +526,8 @@ $(document).ready(function() { ...@@ -526,8 +526,8 @@ $(document).ready(function() {
return Lightbox.get('Search','Email',{url:document.URL}); return Lightbox.get('Search','Email',{url:document.URL});
}); });
// Save record links // Save record links
$('.save-record').click(function() { $('.result .save-record').click(function() {
var parts = this.href.split('/'); 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
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
<? if ($this->userlist()->getMode() !== 'disabled'): ?> <? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? /* Add to favorites */ ?> <? /* 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 */ ?> <? /* Saved lists */ ?>
<div class="savedLists alert alert-info hidden"> <div class="savedLists alert alert-info hidden">
......
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