Sha256: 19a1ceb92b4147a098303f7d4d7e0c99e5ab04fee5da7ceba2f13cc077ec7600

Contents?: true

Size: 1.57 KB

Versions: 1

Compression:

Stored size: 1.57 KB

Contents

#= require jquery2
#= require jquery-ui.min

# multi_column_field component
#= require jquery.quicksearch.min
#= require jquery.multi-select.min
#= require jquery.multi-select-extend

# Bootstrap
#= require tether.min
#= require popper
#= require bootstrap

# date_picker_field component
#= require bootstrap-datepicker.min

# dropdown_select_field component
#= require bootstrap-select.min

# switch_field component
#= require bootstrap-switch.min

# multi_select_field component
#= require bootstrap-multiselect.min

# input_connected
#= require input-connected

# mardown-editor
#= require marked
#= require bootstrap-markdown

# Ui Bibz
#= require table
#= require interface
#= require formula
#= require form
#= require fix_bootstrap

@UiBibz = class UiBibz

  constructor: ->
    @table     = new window.UiBibzTable()
    @form      = new window.UiBibzForm()
    @interface = new window.UiBibzInterface()
    @formula   = new window.UiBibzFormula()
    #delete window.UiBibzTable
    #delete window.UiBibzForm
    #delete window.UiBibzInterface

ready = ->
  new UiBibz
  # Fix for turbolinks
  $( "textarea[data-provide*='markdown']" ).markdown() # fix markdown js if turbolinks exists

# turbolinks:load and ready together load twice time javascript
#$(document).on('ready turbolinks:load page:change', ready) # catch event for turbolinks and fix in ready() function
if Turbolinks?
  ready()
  $(document).on('turbolinks:load page:change', ready) # catch event for turbolinks and fix in ready() function
else
  $(document).on('ready', ready) # catch event for turbolinks and fix in ready() function

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ui_bibz-2.0.0 app/assets/javascripts/ui_bibz.coffee