osem-fcy/app/assets/javascripts/application.js

77 lines
2.1 KiB
JavaScript
Raw Normal View History

2013-01-07 09:04:09 +01:00
// 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 vendor/assets/javascripts of plugins, if any, 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
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery
//= require toastr_rails
2014-04-23 15:45:55 +02:00
//= require jquery_ujs
2016-06-16 13:04:44 +02:00
//= require jquery.mobile.custom.min
2016-08-11 15:05:53 +02:00
//= require jquery.ui.draggable
//= require jquery.ui.droppable
//= require waypoints/jquery.waypoints
//= require dataTables/jquery.dataTables
//= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
2013-01-07 09:04:09 +01:00
//= require cocoon
//= require bootstrap
//= require Chart
//= require osem
//= require osem-dashboard
//= require ahoy
//= require jquery-smooth-scroll
//= require trianglify
//= require tinycolor
2014-07-02 20:41:51 +05:30
//= require bootstrap-markdown
//= require to-markdown
//= require markdown
//= require momentjs
//= require leaflet
2016-02-06 22:43:08 +01:00
//= require holderjs
//= require bootstrap-datetimepicker
//= require osem-datepickers
//= require osem-datatables
//= require osem-tickets
2014-12-13 21:13:19 +02:00
//= require bootstrap-switch
//= require osem-schedule
//= require osem-switch
//= require osem-bootstrap
//= require osem-revisionhistory
//= require osem-commercials
//= require unobtrusive_flash
//= require unobtrusive_flash_bootstrap
//= require countable
2014-02-09 18:05:57 +02:00
$(document).ready(function() {
2017-03-06 22:04:09 +05:30
$('a[disabled=disabled]').click(function(event){
return false;
});
toastr.options = {
'closeButton': false,
'debug': false,
'newestOnTop': false,
'progressBar': true,
2017-03-07 16:14:50 +05:30
'positionClass': 'toast-top-center',
'preventDuplicates': true,
'onclick': null,
'showDuration': '300',
'hideDuration': '100',
'timeOut': '5000',
'extendedTimeOut': '1000',
'showEasing': 'swing',
'hideEasing': 'linear',
'showMethod': 'fadeIn',
'hideMethod': 'fadeOut'
};
2017-03-06 22:04:09 +05:30
$('body').smoothScroll({
delegateSelector: 'a.smoothscroll'
});
});