Changeset - fc72f550ddcd
[Not reviewed]
default
0 2 0
Drew Perttula - 6 years ago 2019-05-27 06:22:34
drewp@bigasterisk.com
annual update of the hardcoded URIs in frontend code that I don't bother to fix
Ignore-this: 3c438cd972d3014cca2383f943023b1b
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/web/live/live.coffee
Show inline comments
 
@@ -256,25 +256,25 @@ class ActiveSettings
 

	
 
class GraphToControls
 
  # More efficient bridge between liveControl widgets and graph edits,
 
  # as opposed to letting each widget scan the graph and push lots of
 
  # tiny patches to it.
 
  constructor: (@graph) ->
 
    @activeSettings = new ActiveSettings(@graph)
 
    @effect = null
 

	
 
  ctxForEffect: (effect) ->
 
    @graph.Uri(effect.value.replace(
 
      "light9.bigasterisk.com/effect",
 
      "light9.bigasterisk.com/show/dance2018/effect"))
 
      "light9.bigasterisk.com/show/dance2019/effect"))
 
      
 
  setEffect: (effect) ->
 
    @clearSettings()
 
    @effect = effect
 
    @ctx = @ctxForEffect(@effect)
 
    # are these going to pile up? consider @graph.triggerHandler('GTC sync')
 
    @graph.runHandler(@syncFromGraph.bind(@), 'GraphToControls sync')
 

	
 
  newEffect: ->
 
    # wrong- this should be our editor's scratch effect, promoted to a
 
    # real one when you name it.
 
    U = (x) => @graph.Uri(x)
light9/web/timeline/timeline.coffee
Show inline comments
 
@@ -158,25 +158,25 @@ coffeeElementSetup(class TimelineEditor 
 
  _onSongTime: (t) ->
 
    @viewState.cursor.t(t)
 

	
 
  _onSongDuration: (d) ->
 
    d = 700 if d < 1 # bug is that asco isn't giving duration, but 0 makes the scale corrupt
 
    @viewState.zoomSpec.duration(d)
 

	
 
  _onSong: (s) ->
 
    @song = @playerSong if @followPlayerSong
 

	
 
  _onGraph: (graph) ->
 
    @project = new Project(graph)
 
    @show = 'http://light9.bigasterisk.com/show/dance2018'
 
    @show = 'http://light9.bigasterisk.com/show/dance2019'
 

	
 
  _onSetAdjuster: () ->
 
    @makeZoomAdjs()
 

	
 
  updateDebugSummary: ->
 
    elemCount = (tag) -> document.getElementsByTagName(tag).length
 
    @debug = "#{window.debug_zoomOrLayoutChangedCount} layout change,
 
     #{elemCount('light9-timeline-note')} notes,
 
     #{@selection.selected().length} selected
 
     #{elemCount('light9-timeline-graph-row')} rows,
 
     #{window.debug_adjsCount} adjuster items registered,
 
     #{window.debug_adjUpdateDisplay} adjuster updateDisplay calls,
0 comments (0 inline, 0 general)