Sha256: 5cf5e567d77fc0bbcacef265ab5344de076f941c46f24b7e51515defc4db6ba4
Contents?: true
Size: 1.37 KB
Versions: 3
Compression:
Stored size: 1.37 KB
Contents
// https://webpack.github.io/docs/context.html#require-context function requireAll(requireContext) { return requireContext.keys().map(requireContext); } window.$ = window.jQuery = require('jquery') window._ = require('lodash') window.is = require('is') window.Mustache = require('mustache/mustache') require('jquery') require('jquery-ujs') require('js-cookie') require('bootstrap/dist/js/bootstrap') require('selectize/dist/js/selectize') require('mustache') requireAll(require.context("./lib", true, /\.js$/)); requireAll(require.context("./behaviors", true, /\.js$/)); requireAll(require.context("./controllers", true, /\.js$/)); $(function(){ // $('*[data-toggle="popover"]').popover() // $('select').selectize() $('[data-toggle="tooltip"]').tooltip() $('[data-toggle="popover"]').popover() // Redirect to hash after page is loaded since the conversation is injected if (!is.empty(window.location.hash.substring(1)) ) { location.href = "#" + window.location.hash.substring(1); } setTimeout(function(){ $('.fadeout.alert').fadeOut('slow') }, 2000); $(document).on('turbolinks:click', function (event) { if (event.target.getAttribute('href').charAt(0) === '#') { return event.preventDefault() } }) }) jQuery.fn.extend({ disable: function(state) { return this.each(function() { this.disabled = state; }); } })
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mvpkit-1.1.2 | project/app/webpack/javascripts/pack.js |
mvpkit-1.1.1 | project/app/webpack/javascripts/pack.js |
mvpkit-1.1.0 | project/app/webpack/javascripts/pack.js |