Mercurial > code > home > repos > light9
changeset 1650:fb9e84646320
show uri tail for label on timeline attra
Ignore-this: ee78e01186a190314112efceeeb9f2a7
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 10 Jun 2017 10:26:54 +0000 |
parents | b48b0d9812cf |
children | e00492e1c0b1 |
files | light9/web/timeline/timeline.coffee |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/web/timeline/timeline.coffee Sat Jun 10 10:24:53 2017 +0000 +++ b/light9/web/timeline/timeline.coffee Sat Jun 10 10:26:54 2017 +0000 @@ -674,7 +674,10 @@ #console.time('attrs update') U = (x) => @graph.Uri(x) @effect = @graph.uriValue(@uri, U(':effectClass')) - @effectLabel = @graph.stringValue(@effect, U('rdfs:label')) or (@effect.replace(/.*\//, '')) + try + @effectLabel = @graph.stringValue(@effect, U('rdfs:label')) + catch + @effectLabel = @effect.replace(/.*\//, '') @noteLabel = @uri.replace(/.*\//, '') existingColorScaleSetting = null