Sha256: 94d86f267fedbf4e48128e33832ba113a7c53a64b4b6aaf67de682e15ba4bf94
Contents?: true
Size: 960 Bytes
Versions: 22
Compression:
Stored size: 960 Bytes
Contents
class App.ResourceForm constructor: (@el) -> # initialize some stuff # # make sure fields with values do not have their labels obscuring your view # setLabels: (selector) -> $(selector).each () -> try fld = '#'+$(this).attr('for') $(this).addClass('active') unless $(fld)[0].value.nil? catch #console.log this # # prepare the form - a data: {form_type: record } # kind of form that is prepare: -> try # # make labels on fields with content move out of the way # @setLabels('.input-field label') # # Initialize INPUT TYPE='DATE' # # %input.datepicker{ type:"date" } # $('.datepicker').pickadate selectMonths: true, # Creates a dropdown to control month selectYears: 15 # Creates a dropdown of 15 years to control year catch error alert 'App.ResourceForm did not prepare!' console.log error
Version data entries
22 entries across 22 versions & 1 rubygems