Sha256: f7569db70fd9b88dbc24e2b6ab6f2fc24074c8efcdbc9ad5192e9b70c34504e0
Contents?: true
Size: 496 Bytes
Versions: 2
Compression:
Stored size: 496 Bytes
Contents
@Mercury.dialogHandlers.objectspanel = -> # make the filter work @element.find('input.filter').keyup => value = @element.find('input.filter').val() for snippet in @element.find('li[data-filter]') if LiquidMetal.score($(snippet).data('filter'), value) == 0 then $(snippet).hide() else $(snippet).show() # when an element is dragged, set it so we have a global object @element.find('img[data-snippet]').bind 'dragstart', (event) -> Mercury.snippet = $(@).data('snippet')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mercury-rails-0.1.1 | app/assets/javascripts/mercury/dialogs/objectspanel.js.coffee |
mercury-rails-0.1.0 | app/assets/javascripts/mercury/dialogs/objectspanel.js.coffee |