app/assets/javascripts/formagic/inputs/select2.coffee in formagic-0.3.4 vs app/assets/javascripts/formagic/inputs/select2.coffee in formagic-0.3.7

- old
+ new

@@ -1,33 +1,20 @@ # ----------------------------------------------------------------------------- # Author: Alexander Kravets <alex@slatestudio.com>, # Slate Studio (http://www.slatestudio.com) -# -# Coding Guide: -# https://github.com/thoughtbot/guides/tree/master/style/coffeescript # ----------------------------------------------------------------------------- - -# ----------------------------------------------------------------------------- # INPUT SELECT 2 # ----------------------------------------------------------------------------- -# # Dependencies: #= require vendor/select2 -# # ----------------------------------------------------------------------------- - class @InputSelect2 extends InputSelect initialize: -> @config.beforeInitialize?(this) # https://select2.github.io/options.html options = @config.pluginOptions || { placeholder: @config.placeholder } @$input.select2(options) @config.onInitialize?(this) - chr.formInputs['select2'] = InputSelect2 - - - -