Sha256: a22edd4ce0a375e58deffbbde7fc49eadd1e9dc9ca8e8c5ddfa227f2107c6ee3

Contents?: true

Size: 1.94 KB

Versions: 66

Compression:

Stored size: 1.94 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) ->
          $("#modal_search").remove()
          $("#modal_new_record").remove()
          # 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

66 entries across 66 versions & 1 rubygems

Version Path
templus_models-3.0.21 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-3.0.20 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-3.0.19 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-3.0.17 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-2.0.16 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.6.9 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-2.0.15 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-3.0.14 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-2.0.14 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-2.0.12 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-3.0.13 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-3.0.12 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-2.0.11 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-2.0.9 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-2.0.8 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-3.0.10 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.6.8 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.6.7 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-3.0.9 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-2.0.7 test/dummy/app/assets/javascripts/atualizacoes.js.coffee