Sha256: f67b629a2252eac106c680f33c50f66b972f750afd15ebebfe57ad742ea20999

Contents?: true

Size: 1.89 KB

Versions: 12

Compression:

Stored size: 1.89 KB

Contents

#= require jquery
#= require jquery_ujs
#= require underscore
#= require backbone
#= require jquery/jquery.livequery
#= require fancybox
#= require wice_grid
#= require jquery.ui.all
#= require bootstrap
#= require ../../nicedit/nicEdit
#= require ./nicedit_applier
#= require ../../tipsy/src/javascripts/jquery.tipsy
# ./tipsy_init
#= require jquery.qtip.js
#= require jquery.globalmoney
#= require ckeditor/init
#= require jquery.meio.mask.min
#= require jquery.ui.addresspicker

#= require angular.min
#= require angular-ui.min
#= require gmaps


Backbone.emulateHTTP = true

$ ->

  window.cfgCulture = 'pt-BR'
  $.preferCulture(cfgCulture)

  $(".actions [title]").livequery ->
    $(this).qtip
      content: $(this).attr("title") # Use the tooltip attribute of the element for the content
      #style: "dark" # Give it a crea mstyle to make it stand out
      style:
        classes: 'qtip-bootstrap'
  
  $('.zoom-image').livequery ->
    $(@).fancybox();

  $('.currency').livequery ->
    $(@).maskMoney
      symbol: 'R$'
      decimal: ','
      precision: 2
      thousands: ''
      showSymbol: false

  $("input.datepicker").each (i) ->
    $(this).datepicker
      altFormat: "yy-mm-dd"
      dateFormat: "dd/mm/yy"
      altField: $(this).next()

  $(".cell, .phone").livequery ->
    $(@).setMask('(84) 9999-9999')

  $(".cep").livequery ->
    $(@).setMask('99999-999')

  # window.admix = angular.module('admix', ['ui'])
  #   .config(["$httpProvider", function(provider) {
  #     provider.defaults.headers.common['X-CSRF-Token'] = $('meta[name=csrf-token]').attr('content');
  #   .controller 'FormController', ($scope) ->
  #     console.log 'init From Controller'
  #     $scope.method = $(AdmixForm._method).val()
  #     $scope.authenticity_token = $(AdmixForm.authenticity_token).val()
  #     $scope.utf8 = $(AdmixForm.utf8).val()

  #     console.log $scope


  # angular.bootstrap(document, ['admix'])    

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
mix-rails-0.26.1 admix/app/assets/javascripts/admix/application.js.coffee
admix-0.26.1 app/assets/javascripts/admix/application.js.coffee
mix-rails-0.26.0 admix/app/assets/javascripts/admix/application.js.coffee
admix-0.26.0 app/assets/javascripts/admix/application.js.coffee
mix-rails-0.25.1 admix/app/assets/javascripts/admix/application.js.coffee
admix-0.25.1 app/assets/javascripts/admix/application.js.coffee
mix-rails-0.25.0 admix/app/assets/javascripts/admix/application.js.coffee
admix-0.25.0 app/assets/javascripts/admix/application.js.coffee
mix-rails-0.24.1 admix/app/assets/javascripts/admix/application.js.coffee
admix-0.24.1 app/assets/javascripts/admix/application.js.coffee
mix-rails-0.24.0 admix/app/assets/javascripts/admix/application.js.coffee
admix-0.24.0 app/assets/javascripts/admix/application.js.coffee