Guest User

Untitled

a guest
Sep 30th, 2015
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Step #1
  2. head.load(
  3.     // First, load the main JS library
  4.     [
  5.         { jquery_core: "/include/plugins/jquery-1.11.3/jquery-1.11.3.min.js" },
  6.         { jquery_ui: "/include/plugins/jquery-ui-1.10.4/ui/minified/jquery-ui.min.js" }
  7.     ],
  8.     function() {
  9.         console.debug('Loaded jQuery library files, loading jQuery plugin files..');
  10.         jquery_plugins();
  11.     }
  12. );
  13.  
  14.  
  15. // Step #2
  16. function jquery_plugins() {
  17.     head.load([
  18.             // Load all the jQuery plugin files
  19.             "/include/plugins/bootstrap-3.2.0/js/bootstrap.min.js",
  20.  
  21.             "/include/plugins/select2/select2.js",
  22.             "/include/plugins/bootstrap3-editable/js/bootstrap-editable.min.js",
  23.             "/include/plugins/bootstrap3-editable/inputs-ext/address/address.js",
  24.             "/include/plugins/bootstrap3-editable/inputs-ext/typeaheadjs/lib/typeahead.js",
  25.             "/include/plugins/bootstrap3-editable/inputs-ext/typeaheadjs/typeaheadjs.js",
  26.             "/include/plugins/bootstrap3-editable/inputs-ext/wysihtml5/wysihtml5.js",
  27.  
  28.             "/include/plugins/mustache/mustache.js",
  29.  
  30.             "/include/plugins/slimscroll/jquery.slimscroll.min.js",
  31.             "/include/plugins/jquery-cookie/jquery.cookie.js",
  32.             "/include/plugins/gritter/js/jquery.gritter.js",
  33.             "/include/plugins/jquery-tooltipster-master/js/jquery.tooltipster.js",
  34.             "/include/plugins/bootstrap-wizard/js/bwizard.js",
  35.             "/include/js/apps.js",
  36.             "/include/js/enhanced-select.jquery.min.js",
  37.             "/include/js/jquery.multi-select.js",
  38.             "/include/plugins/intro/intro.js",
  39.             "/include/plugins/switchery/switchery.min.js",
  40.             "/include/js/jquery.multiselect.js",
  41.             "/include/plugins/parsley/src/parsley.js",
  42.             "/include/plugins/parsley/src/extra/validator/APPcustom.js",
  43.             "/include/plugins/parsley/src/extra/plugin/parsley.remote.js",
  44.             "/include/plugins/bootstrap3-timepicker2/js/bootstrap-timepicker.js",
  45.             "/include/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js",
  46.             "/include/plugins/SamWM/numeric/jquery.numeric.min.js",
  47.             "/include/plugins/moment/moment.min.js",
  48.             "/include/plugins/flot/jquery.flot.min.js",
  49.             "/include/plugins/flot/jquery.flot.time.min.js",
  50.             "/include/plugins/flot/jquery.flot.resize.min.js",
  51.             "/include/plugins/flot/jquery.flot.pie.min.js",
  52.             "/include/plugins/flot/jquery.flot.stack.min.js",
  53.             "/include/plugins/flot/jquery.flot.crosshair.min.js",
  54.             "/include/plugins/flot/jquery.flot.categories.js",
  55.             "/include/plugins/sparkline/jquery.sparkline.js",
  56.             "/include/plugins/bootstrap-tagsinput/bootstrap-tagsinput.min.js",
  57.             "/include/plugins/bootstrap-tagsinput/bootstrap-tagsinput-typeahead.js",
  58.             "/include/plugins/jquery-tag-it/js/tag-it.min.js",
  59.             "/include/plugins/bootstrap-select/bootstrap-select.min.js",
  60.             "/include/plugins/contextMenu/src/jquery.ui.position.js",
  61.             "/include/plugins/contextMenu/src/jquery.contextMenu.js",
  62.             "/include/js/jquery.mask.min.js",
  63.             "/include/plugins/jquery-jstree/dist/jstree.min.js",
  64.             "/include/plugins/jquery.expander.js",
  65.             "/include/plugins/jquery-labelauty/source/jquery-labelauty.js",
  66.             "/include/plugins/jquery-file-upload/js/vendor/jquery.ui.widget.js",
  67.  
  68.             "/include/plugins/jquery-jscroll/jquery.jscroll.js",
  69.             "/include/js/modernizr.js",
  70.             "/include/plugins/jquery-messi/dist/messi.js",
  71.  
  72.             "/include/plugins/jquery-tmpl/jquery.tmpl.min.js",
  73.  
  74.             { jquery_highlight: "/include/plugins/jquery-searchhighlight/jquery.highlight.js" },
  75.  
  76.             { datatables_core: "/include/plugins/DataTables/minify/datatables.min.js" },
  77.             { datatables_searchHighlight: "/include/plugins/DataTables-Plugins/features/searchHighlight/dataTables.searchHighlight.min.js" },
  78.             { datatables_conditionalPaging: "/include/plugins/DataTables-Plugins/features/conditionalPaging/dataTables.conditionalPaging.js" },
  79.             { datatables_ellipsis: "/include/plugins/DataTables-Plugins/dataRender/ellipsis.js" },
  80.             { datatables_yadcf: "/include/plugins/yadcf-0.8.8/jquery.dataTables.yadcf.js" },
  81.  
  82.             { ckeditor: "/include/plugins/ckeditor/ckeditor.js" }
  83.         ],
  84.         function() {
  85.             console.log('All jQuery plugins loaded, loading APP js files...');
  86.             APP_js_files();
  87.         });
  88. }
  89.  
  90. // Step #3
  91. function APP_js_files(){
  92.     head.load([
  93.             // Load the application JS files
  94.             { APP_plugins: "/include/js/APP_plugin.js" },
  95.             { APP_intro: "/include/js/APP_intro.js" },
  96.             { APP_app: "/include/js/APP_app.js" },
  97.             { APP_confirmation: "/include/js/APP_confirmation.js" }
  98.         ],
  99.         function() {
  100.             "use strict";
  101.             console.log('Successfully loaded all APP js files!');
  102.  
  103.             $.ajaxSetup({
  104.                 cache:false
  105.             });
  106.  
  107.             App.init();
  108.  
  109.             template.init();
  110.             account.init();
  111.             admin.init();
  112.             assets.init();
  113.             forms.init();
  114.         });
  115. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×