VRFS-2823 : Bugfix and cleanup.
This commit is contained in:
parent
05d029243d
commit
f4cd225142
|
|
@ -86,7 +86,6 @@ module JamRuby
|
|||
end
|
||||
|
||||
if options[:artist].present?
|
||||
puts "Checking artist #{options[:artist]}"
|
||||
query = query.where("original_artist=?", options[:artist])
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -71,8 +71,8 @@ context.JK.JamTrackScreen=class JamTrackScreen
|
|||
that.handleJamtrackResponse(response)
|
||||
).fail (jqXHR) ->
|
||||
that.clearResults()
|
||||
@noMoreJamtracks.show()
|
||||
@app.notifyServerError jqXHR, 'Jamtrack Unavailable'
|
||||
that.noMoreJamtracks.show()
|
||||
that.app.notifyServerError jqXHR, 'Jamtrack Unavailable'
|
||||
|
||||
search:() =>
|
||||
this.refresh()
|
||||
|
|
@ -219,7 +219,7 @@ context.JK.JamTrackScreen=class JamTrackScreen
|
|||
@instrument = @screen.find('#jamtrack_instrument')
|
||||
@availability = @screen.find('#jamtrack_availability')
|
||||
@nextPager = @screen.find('a.btn-next-pager')
|
||||
@noMoreJamtracks = @screen.find('#end-of-jamtrack-list')
|
||||
@noMoreJamtracks = @screen.find('.end-of-jamtrack-list')
|
||||
if @screen.length == 0
|
||||
throw new Error('@screen must be specified')
|
||||
if @scroller.length == 0
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
.profile-wrapper
|
||||
.jamtrack-content
|
||||
a.btn-next-pager href="/api/jamtracks?page=1" Next
|
||||
#end-of-jamtrack-list.end-of-list="No more Jamtracks"
|
||||
.end-of-jamtrack-list.end-of-list="No more Jamtracks"
|
||||
|
||||
script type='text/template' id='template-jamtrack'
|
||||
.jamtrack-record jamtrack-id="{{data.jamtrack.id}}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue