Sha256: 0ca3f638053e55dead2d54fc8fd624f59e94267dd7fc3110069e47d76af8b284

Contents?: true

Size: 1.67 KB

Versions: 2

Compression:

Stored size: 1.67 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('')
    @

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cg_app_base-1.0.52 app/assets/javascripts/base.js.coffee
cg_app_base-1.0.51 app/assets/javascripts/base.js.coffee