選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

htmlFooter.tpl 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. <!--[if IE 8]>
  32. <h1>Your browser is out of date, please update your browser by going to www.microsoft.com/download</h1>
  33. <![endif]-->
  34. <!-- MAIN APP JS FILE -->
  35. <script src="lib/SmartAdmin/js/app.min.js"></script>
  36. <!-- ENHANCEMENT PLUGINS : NOT A REQUIREMENT -->
  37. <!-- Voice command : plugin -->
  38. <script src="lib/SmartAdmin/js/speech/voicecommand.min.js"></script>
  39. <!-- SmartChat UI : plugin -->
  40. <script src="lib/SmartAdmin/js/smart-chat-ui/smart.chat.ui.min.js"></script>
  41. <script src="lib/SmartAdmin/js/smart-chat-ui/smart.chat.manager.min.js"></script>
  42. <!-- Full Calendar -->
  43. <script src="lib/SmartAdmin/js/plugin/moment/moment.min.js"></script>
  44. <script src="lib/SmartAdmin/js/plugin/fullcalendar/jquery.fullcalendar.min.js"></script>
  45. <script src="lib/SmartAdmin/js/main.js"></script>
  46. {block name="additionalJSFiles"}{/block}
  47. <script>
  48. {literal}
  49. $(document).ready(function() {
  50. // DO NOT REMOVE : GLOBAL FUNCTIONS!
  51. pageSetUp();
  52. /*
  53. * PAGE RELATED SCRIPTS
  54. */
  55. $(".js-status-update a").click(function() {
  56. var selText = $(this).text();
  57. var $this = $(this);
  58. $this.parents('.btn-group').find('.dropdown-toggle').html(selText + ' <span class="caret"></span>');
  59. $this.parents('.dropdown-menu').find('li').removeClass('active');
  60. $this.parent().addClass('active');
  61. });
  62. /*
  63. * TODO: add a way to add more todo's to list
  64. */
  65. // initialize sortable
  66. $(function() {
  67. $("#sortable1, #sortable2").sortable({
  68. handle : '.handle',
  69. connectWith : ".todo",
  70. update : countTasks
  71. }).disableSelection();
  72. });
  73. // check and uncheck
  74. $('.todo .checkbox > input[type="checkbox"]').click(function() {
  75. var $this = $(this).parent().parent().parent();
  76. if ($(this).prop('checked')) {
  77. $this.addClass("complete");
  78. // remove this if you want to undo a check list once checked
  79. //$(this).attr("disabled", true);
  80. $(this).parent().hide();
  81. // once clicked - add class, copy to memory then remove and add to sortable3
  82. $this.slideUp(500, function() {
  83. $this.clone().prependTo("#sortable3").effect("highlight", {}, 800);
  84. $this.remove();
  85. countTasks();
  86. });
  87. } else {
  88. // insert undo code here...
  89. }
  90. })
  91. // count tasks
  92. function countTasks() {
  93. $('.todo-group-title').each(function() {
  94. var $this = $(this);
  95. $this.find(".num-of-tasks").text($this.next().find("li").size());
  96. });
  97. }
  98. /* hide default buttons */
  99. $('.fc-toolbar .fc-right, .fc-toolbar .fc-center').hide();
  100. // calendar prev
  101. $('#calendar-buttons #btn-prev').click(function() {
  102. $('.fc-prev-button').click();
  103. return false;
  104. });
  105. // calendar next
  106. $('#calendar-buttons #btn-next').click(function() {
  107. $('.fc-next-button').click();
  108. return false;
  109. });
  110. // calendar today
  111. $('#calendar-buttons #btn-today').click(function() {
  112. $('.fc-button-today').click();
  113. return false;
  114. });
  115. // calendar month
  116. $('#mt').click(function() {
  117. $('#calendar').fullCalendar('changeView', 'month');
  118. });
  119. // calendar agenda week
  120. $('#ag').click(function() {
  121. $('#calendar').fullCalendar('changeView', 'agendaWeek');
  122. });
  123. // calendar agenda day
  124. $('#td').click(function() {
  125. $('#calendar').fullCalendar('changeView', 'agendaDay');
  126. });
  127. {/literal}
  128. {block name="additionalJSCode"}{/block}
  129. {literal}
  130. });
  131. {/literal}
  132. </script>
  133. </body>
  134. </html>