Sha256: 5f9a255dfc51d21391a07466834db8a3954ba24bacb1249418f16203d9b567ee

Contents?: true

Size: 1.91 KB

Versions: 6

Compression:

Stored size: 1.91 KB

Contents

#= require jquery
#= require jquery-ui
#= require jquery_ujs
#= require flatty/jquery/jquery.mobile.custom.min
#= require flatty/jquery/jquery-migrate.min
#= require flatty/bootstrap/bootstrap.min
#= require flatty/plugins/input_mask/bootstrap-inputmask.min
#= require flatty/plugins/bootstrap_switch/bootstrapSwitch.min
#= require flatty/plugins/validate/jquery.validate
#= require flatty/plugins/validate/additional-methods
#= require flatty/plugins/validate/messages_fr.js
#= require flatty/theme
#= require flatty/plugins/bootstrap_datetimepicker/bootstrap-datetimepicker
#= require flatty/plugins/bootstrap_datetimepicker/bootstrap-datepicker
#= require flatty/plugins/bootbox/bootbox.min
#= require flatty/plugins/ion_range_slider/ion.rangeSlider
#= require commenteux/application
#= require historiqueux/history

$.MyApp =
  appDocumentBeforeLoad: () ->
    $("body, a, :button").css("cursor", "progress")
    $(document).ajaxStart ->
      $('body, a, :button').css 'cursor', 'progress'
      @
    $(document).ajaxStop ->
      $('body, a, :button').css 'cursor', 'default'
      $.MyApp.bindSubmits()
      $.MyApp.bindWaits()
      @
    @

  documentReadyDone: () ->
    $("body, a, :button").css("cursor", "default");
    @

  bindSubmits: () ->
    $(':submit').click (event) ->
      unless $(this).hasClass('dontwait')
        $('body, a, :button').css 'cursor', 'progress'
        @
    @

  bindWaits: () ->
    $('.wait').click (event) ->
      $('body, a, :button').css 'cursor', 'progress'
    @

  displayMessages: (messages) ->
    $('#flash_messages').html(messages)
    @

  empty_hide_modal: () ->
    $('#modal-window').modal('hide')
    $('#modal-window .modal-body').html('')
    @

$ ->
  $('.row-eq-height').each ->
    heights = $(this).find('.col-eq-height').map(->
      $(this).outerHeight()
    ).get()
    maxHeight = Math.max.apply(null, heights)
    $(this).find('.col-eq-height').outerHeight maxHeight
    @
  @

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cg_app_base-1.1.1 app/assets/javascripts/base.js.coffee
cg_app_base-1.0.78 app/assets/javascripts/base.js.coffee
cg_app_base-1.0.62 app/assets/javascripts/base.js.coffee
cg_app_base-1.0.56 app/assets/javascripts/base.js.coffee
cg_app_base-1.0.55 app/assets/javascripts/base.js.coffee
cg_app_base-1.0.54 app/assets/javascripts/base.js.coffee