Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

htmlFooter.tpl 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <!--================================================== -->
  2. <!-- PACE LOADER - turn this on if you want ajax loading to show (caution: uses lots of memory on iDevices)-->
  3. <script data-pace-options='{ "restartOnRequestAfter": true }' src="lib/SmartAdmin/js/plugin/pace/pace.min.js"></script>
  4. <!-- Link to Google CDN's jQuery + jQueryUI; fall back to local -->
  5. <script src="lib/SmartAdmin/js/libs/jquery-2.1.1.min.js"></script>
  6. <script src="lib/SmartAdmin/js/libs/jquery-ui-1.10.3.min.js"></script>
  7. <!-- IMPORTANT: APP CONFIG -->
  8. <script src="lib/SmartAdmin/js/app.config.js"></script>
  9. <!-- JS TOUCH : include this plugin for mobile drag / drop touch events-->
  10. <script src="lib/SmartAdmin/js/plugin/jquery-touch/jquery.ui.touch-punch.min.js"></script>
  11. <!-- BOOTSTRAP JS -->
  12. <script src="lib/SmartAdmin/js/bootstrap/bootstrap.min.js"></script>
  13. <!-- CUSTOM NOTIFICATION -->
  14. <script src="lib/SmartAdmin/js/notification/SmartNotification.min.js"></script>
  15. <!-- JARVIS WIDGETS -->
  16. <script src="lib/SmartAdmin/js/smartwidgets/jarvis.widget.min.js"></script>
  17. <!-- SPARKLINES -->
  18. <script src="lib/SmartAdmin/js/plugin/sparkline/jquery.sparkline.min.js"></script>
  19. <!-- JQUERY VALIDATE -->
  20. <script src="lib/SmartAdmin/js/plugin/jquery-validate/jquery.validate.min.js"></script>
  21. <!-- JQUERY MASKED INPUT -->
  22. <script src="lib/SmartAdmin/js/plugin/masked-input/jquery.maskedinput.min.js"></script>
  23. <!-- JQUERY SELECT2 INPUT -->
  24. <script src="lib/SmartAdmin/js/plugin/select2/select2.min.js"></script>
  25. <!-- JQUERY UI + Bootstrap Slider -->
  26. <script src="lib/SmartAdmin/js/plugin/bootstrap-slider/bootstrap-slider.min.js"></script>
  27. <!-- browser msie issue fix -->
  28. <script src="lib/SmartAdmin/js/plugin/msie-fix/jquery.mb.browser.min.js"></script>
  29. <!-- FastClick: For mobile devices -->
  30. <script src="lib/SmartAdmin/js/plugin/fastclick/fastclick.min.js"></script>
  31. <script src="lib/SmartAdmin/js/plugin/datatables/jquery.dataTables.min.js"></script>
  32. <!--[if IE 8]>
  33. <h1>Your browser is out of date, please update your browser by going to www.microsoft.com/download</h1>
  34. <![endif]-->
  35. <!-- MAIN APP JS FILE -->
  36. <script src="lib/SmartAdmin/js/app.min.js"></script>
  37. <script src="lib/SmartAdmin/js/main.js"></script>
  38. {block name="additionalJSFiles"}{/block}
  39. <script>
  40. {literal}
  41. $(document).ready(function() {
  42. // DO NOT REMOVE : GLOBAL FUNCTIONS!
  43. pageSetUp();
  44. /*
  45. * PAGE RELATED SCRIPTS
  46. */
  47. $(".js-status-update a").click(function() {
  48. var selText = $(this).text();
  49. var $this = $(this);
  50. $this.parents('.btn-group').find('.dropdown-toggle').html(selText + ' <span class="caret"></span>');
  51. $this.parents('.dropdown-menu').find('li').removeClass('active');
  52. $this.parent().addClass('active');
  53. });
  54. /*
  55. * TODO: add a way to add more todo's to list
  56. */
  57. // initialize sortable
  58. $(function() {
  59. $("#sortable1, #sortable2").sortable({
  60. handle : '.handle',
  61. connectWith : ".todo",
  62. update : countTasks
  63. }).disableSelection();
  64. });
  65. // check and uncheck
  66. $('.todo .checkbox > input[type="checkbox"]').click(function() {
  67. var $this = $(this).parent().parent().parent();
  68. if ($(this).prop('checked')) {
  69. $this.addClass("complete");
  70. // remove this if you want to undo a check list once checked
  71. //$(this).attr("disabled", true);
  72. $(this).parent().hide();
  73. // once clicked - add class, copy to memory then remove and add to sortable3
  74. $this.slideUp(500, function() {
  75. $this.clone().prependTo("#sortable3").effect("highlight", {}, 800);
  76. $this.remove();
  77. countTasks();
  78. });
  79. } else {
  80. // insert undo code here...
  81. }
  82. })
  83. // count tasks
  84. function countTasks() {
  85. $('.todo-group-title').each(function() {
  86. var $this = $(this);
  87. $this.find(".num-of-tasks").text($this.next().find("li").size());
  88. });
  89. }
  90. /* hide default buttons */
  91. $('.fc-toolbar .fc-right, .fc-toolbar .fc-center').hide();
  92. // calendar prev
  93. $('#calendar-buttons #btn-prev').click(function() {
  94. $('.fc-prev-button').click();
  95. return false;
  96. });
  97. // calendar next
  98. $('#calendar-buttons #btn-next').click(function() {
  99. $('.fc-next-button').click();
  100. return false;
  101. });
  102. // calendar today
  103. $('#calendar-buttons #btn-today').click(function() {
  104. $('.fc-button-today').click();
  105. return false;
  106. });
  107. // calendar month
  108. $('#mt').click(function() {
  109. $('#calendar').fullCalendar('changeView', 'month');
  110. });
  111. // calendar agenda week
  112. $('#ag').click(function() {
  113. $('#calendar').fullCalendar('changeView', 'agendaWeek');
  114. });
  115. // calendar agenda day
  116. $('#td').click(function() {
  117. $('#calendar').fullCalendar('changeView', 'agendaDay');
  118. });
  119. {/literal}
  120. {block name="additionalJSCode"}{/block}
  121. {literal}
  122. });
  123. {/literal}
  124. </script>
  125. </body>
  126. </html>