Sha256: bce2cced99a83be4b86d7b20330ad1cbecdd3dcff47e5f46b50146d106e66534
Contents?: true
Size: 609 Bytes
Versions: 6
Compression:
Stored size: 609 Bytes
Contents
class StatusDisplay status_history: [] waiting_statuses: [] max_statuses: 10 constructor: (@ws, @target) -> @target.click => @show_history() show_status: (data) -> @target.html(@ws.escape(data.text, data)) @status_history.push data show_history: -> console.log(@status_history) message = "<ul>#{("<li>#{@ws.escape(item.text, item)}</li>" for item in @status_history).join("\n")}</ul>" $('#dialog > #content > #message').html(message) $('#dialog').show() $('#dialog > #content > #ok').click -> $('#dialog').hide() window.StatusDisplay = StatusDisplay
Version data entries
6 entries across 6 versions & 1 rubygems