Sha256: 17a5a242e6fd5192d3336a626d672e0cdbe58a877b5228657368a4ceeb809e82
Contents?: true
Size: 395 Bytes
Versions: 3
Compression:
Stored size: 395 Bytes
Contents
class @AntsSlugInput constructor: (extra_config={}) -> config = type: 'string' name: '_slug' label: 'Slug' placeholder: '' onInitialize: (input) -> if input.object && input.object._slugs.length defaultSlug = input.object._slugs[0] input.$input.attr 'placeholder', defaultSlug $.extend(config, extra_config) return config
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ants-0.3.5 | app/assets/javascripts/ants/slug.coffee |
ants-0.3.4 | app/assets/javascripts/ants/slug.coffee |
ants-0.3.3 | app/assets/javascripts/ants/slug.coffee |