Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
UniProt
Front End
QuickGoFE
Commits
799d37e0
Commit
799d37e0
authored
Apr 06, 2016
by
Xavier Watkins
Browse files
More sustainable way to update link
parent
6ed04cd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/scripts/services/wsService.js
app/scripts/services/wsService.js
+1
-1
No files found.
app/scripts/services/wsService.js
View file @
799d37e0
...
...
@@ -132,7 +132,7 @@ wsService.factory('dbXrefService', ['$http', '$location', function($http, $locat
getLinkforId
:
function
(
name
,
id
,
xrefs
)
{
//Overwrite for QuickGO instead of AMIGO
if
(
name
===
'
GO
'
)
{
return
'
http://
'
+
$location
.
host
()
+
'
/term/GO:
'
+
id
;
return
$location
.
absUrl
().
replace
(
$location
.
path
(),
'
/term/GO:
'
+
id
)
;
}
else
{
var
match
=
_
.
find
(
xrefs
,
function
(
xref
){
return
xref
.
database
===
name
||
_
.
contains
(
xref
.
synonyms
,
name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment