Sha256: fbde334a7de19eba6e8fc3c3eafc73d96950a982b3c82235187399c23dd637b6
Contents?: true
Size: 1.67 KB
Versions: 2
Compression:
Stored size: 1.67 KB
Contents
//= require ./libs/modernizr-2.6.2.min.js //= require jquery //= require jquery_ujs //= require jquery-ui/datepicker //= require ./libs/datepicker-pt-BR.js //= require ./libs/jquery.mask.min.js //= require ./libs/gumby //= require ./libs/ui/gumby.retina //= require ./libs/ui/gumby.fixed //= require ./libs/ui/gumby.skiplink //= require ./libs/ui/gumby.toggleswitch //= require ./libs/ui/gumby.radiobtn //= require ./libs/ui/gumby.tabs //= require ./libs/ui/gumby.navbar //= require ./libs/ui/jquery.validation //= require ./libs/gumby.init //= require ./plugins.js //= require ./main.js //= require ./activable.js //= require loldesign_publisher/publisher_rails_app.js jQuery(document).ready(function($) { new saveBtnManager(); new formatForm(); }); var saveBtnManager = function(){ var _this = this; this.$container = $('.btn.save'); this.startup = function(){ if(!this.$container[0]){ return false; } this.$container.on('click', 'a', function(event) { event.preventDefault(); _this.submitForm(); }); }, this.submitForm = function(){ $('form').submit(); } this.startup(); } var formatForm = function(){ var that = this; this.$form = $('form'); this.startup = function(){ if(!this.$form[0]){ return false; } this.$form.find('input.tel').mask("(099) 9999-9999?9"); this.$form.find('input.cep').mask("99999-999"); this.$form.find('input.cpf').mask("999.999.999-99"); this.$form.find('input.cnpj').mask("99.999.999/9999-99"); this.$form.find('input.hour').mask("99:99"); this.$form.find('input.date').mask("99/99/9999"); this.$form.find('.datepicker').datepicker(); } this.startup(); }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
loldesign_publisher-1.3.3 | app/assets/javascripts/loldesign_publisher/publisher.js |
loldesign_publisher-1.3.2 | app/assets/javascripts/loldesign_publisher/publisher.js |