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-1.5.13 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.12 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.11 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.10 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.9 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.8 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.7 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.6 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.5 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.4 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.3 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.2 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.1 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.5.0 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.4.4 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.4.3 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.4.2 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.4.1 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.4.0 test/dummy/app/assets/javascripts/atualizacoes.js.coffee
templus_models-1.3.9 test/dummy/app/assets/javascripts/atualizacoes.js.coffee