Sha256: bbd0716fe58258d9c830bb50038d1863239b270f0202b8937d8c209cccbdf284

Contents?: true

Size: 1.91 KB

Versions: 3

Compression:

Stored size: 1.91 KB

Contents

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery2
//= require jquery_ujs
//= require lato_view/vendor/modernizr
//= require selectize
//= require lato_view/vendor/moment.min
//= require lato_view/vendor/picker
//= require lato_view/vendor/picker.date
//= require lato_view/vendor/picker.time
//= require lato_view/vendor/picker-it_IT
//= require lato_view/vendor/dropzone.min
//= require lato_view/vendor/jquery.email-autocomplete.min
//= require lato_view/vendor/trumbowyg
//= require lato_view/build/Util
//= require lato_view/build/Validator
//= require lato_view/build/FormManager
//= require lato_view/build/Dropdown
//= require lato_view/build/Navigation
//= require lato_view/build/ActionBar
//= require lato_view/build/Flash

var Application = (function($) {

  var onResize = function() {
    $(window).on('resize', function() {
      Navigation.manageSidebarDropdown();
    });
  };

  var init = function() {
    $(document).on('ready', function() {

      // Active js functionalities
      document.documentElement.className = 'js';

      // Init our modules
      Dropdown.init();
      Navigation.init();
      //ActionBar.init();
      Flash.init();
      FormManager.init();
      $('.editor').trumbowyg({
        svgPath: '/ui/icons.svg'
      });

      // Functions executed on resize
      onResize();
    });
  };

  return {
    init: init,
  };

})(jQuery);

Application.init();

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lato_view-1.1.4 app/assets/javascripts/lato_view/application.js
lato_view-1.1.3 app/assets/javascripts/lato_view/application.js
lato_view-1.1 app/assets/javascripts/lato_view/application.js