Sha256: 40e732b456b031d905c043cf1a6c90084390501cd7b989f4b065bb9e68543ced

Contents?: true

Size: 1.9 KB

Versions: 10

Compression:

Stored size: 1.9 KB

Contents

window.executa_atualizacoes = ->
  atualiza_campos_crud()
  permission()

$ ->
  wiselinks = new Wiselinks($('#page-wrapper-main'));
  # $('#list').jstree
  #   "plugins": ["html_data"]
  #   "core" : { "initially_open" : [ "root" ] }

  # $(document).off('page:loading').on(
  #     'page:loading'
  #     (event, $target, render, url) ->
  #         NProgress.start()
  #         bloqueia()
  # )
  #
  # $(document).off('page:redirected').on(
  #     'page:redirected'
  #     (event, $target, render, url) ->
  #       NProgress.start()
  #       bloqueia()
  # )
  #
  # $(document).off('page:always').on(
  #     'page:always'
  #     (event, xhr, settings) ->
  #       NProgress.done()
  # )
  #
  $(document).off('page:done').on(
      'page:done'
      (event, $target, status, url, data) ->
          # NProgress.remove()
          # $('.datepicker').datepicker({format: 'dd/mm/yyyy'})
          # $('.timepicker').timepicker()
          # $('.best_in_place').best_in_place()
          window.executa_atualizacoes()
          # desbloqueia()
          # if $target.attr('id') is 'main-container'
          #   $('select#filter').change ->
          #     $('#scope-select').submit()
  )
  # $(document).off('page:fail').on(
  #     'page:fail'
  #     (event, $target, status, url, error, code) ->
  #       desbloqueia()
  #       console.debug("***************ERRO*************")
  #       console.debug('URL:')
  #       console.debug(url)
  #       console.debug('Target:')
  #       console.debug($target)
  #       console.debug('Status:')
  #       console.debug(status)
  #       console.debug('Error:')
  #       console.debug(error)
  #       console.debug('Code:')
  #       console.debug(code)
  #       console.debug("***************ERRO*************")
  #       $.gritter.add({title: 'Erro', text: 'Não foi possível completar sua requisição. Entre em contato com o suporte', class_name: 'gritter-error'});
  # )

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
templus_models-1.3.1 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.3.0 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.2.8 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.2.7 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.2.6 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.2.5 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.2.4 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.2.3 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.2.2 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.2.1 test/dummy/app/assets/javascripts/atualizacoes.js.coffee