comit asset
Showing
assets/css/AdminLTE.min.css
0 → 100644
assets/css/bootstrap-datepicker3.css
0 → 100644
assets/css/bootstrap-imageupload.css
0 → 100644
assets/css/bootstrap.min.css
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
assets/css/clockpicker.css
0 → 100644
assets/css/custom-style.css
0 → 100644
assets/css/dataTables.bootstrap.css
0 → 100644
assets/css/images/Thumbs.db
0 → 100644
File added
assets/css/images/sort_asc.png
0 → 100644
160 Bytes
assets/css/images/sort_asc_disabled.png
0 → 100644
148 Bytes
assets/css/images/sort_both.png
0 → 100644
201 Bytes
assets/css/images/sort_desc.png
0 → 100644
158 Bytes
assets/css/images/sort_desc_disabled.png
0 → 100644
146 Bytes
assets/css/images/uploadify-cancel.png
0 → 100644
2.89 KB
assets/css/morris.css
0 → 100644
assets/css/pace.css
0 → 100644
assets/css/parsley/parsley.css
0 → 100644
assets/css/select2.min.css
0 → 100644
assets/css/skin-blue.css
0 → 100644
assets/css/skins/_all-skins.css
0 → 100644
assets/css/skins/_all-skins.min.css
0 → 100644
assets/css/skins/skin-black-light.css
0 → 100644
assets/css/skins/skin-black-light.min.css
0 → 100644
assets/css/skins/skin-black.css
0 → 100644
assets/css/skins/skin-black.min.css
0 → 100644
assets/css/skins/skin-blue-light.css
0 → 100644
assets/css/skins/skin-blue-light.min.css
0 → 100644
assets/css/skins/skin-blue.css
0 → 100644
assets/css/skins/skin-blue.min.css
0 → 100644
assets/css/skins/skin-green-light.css
0 → 100644
assets/css/skins/skin-green-light.min.css
0 → 100644
assets/css/skins/skin-green.css
0 → 100644
assets/css/skins/skin-green.min.css
0 → 100644
assets/css/skins/skin-purple-light.css
0 → 100644
assets/css/skins/skin-purple-light.min.css
0 → 100644
assets/css/skins/skin-purple.css
0 → 100644
assets/css/skins/skin-purple.min.css
0 → 100644
assets/css/skins/skin-red-light.css
0 → 100644
assets/css/skins/skin-red-light.min.css
0 → 100644
assets/css/skins/skin-red.css
0 → 100644
assets/css/skins/skin-red.min.css
0 → 100644
assets/css/skins/skin-yellow-light.css
0 → 100644
assets/css/skins/skin-yellow-light.min.css
0 → 100644
assets/css/skins/skin-yellow.css
0 → 100644
assets/css/skins/skin-yellow.min.css
0 → 100644
File added
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
File added
File added
File added
assets/images/add-image.png
0 → 100644
7.61 KB
assets/images/ajax-loader-4.gif
0 → 100644
404 Bytes
assets/images/default_car.jpg
0 → 100644
21.4 KB
assets/images/loader.gif
0 → 100644
60.6 KB
assets/images/mapCarIcon.png
0 → 100644
2.39 KB
assets/images/mapCarIconPref.png
0 → 100644
2.87 KB
assets/images/mapPickupIcon.png
0 → 100644
2.6 KB
assets/images/no_image.png
0 → 100644
5.89 KB
assets/images/no_image_text.png
0 → 100644
29.4 KB
assets/images/user_avatar.jpg
0 → 100644
4.14 KB
assets/images/user_avatar.png
0 → 100644
11.6 KB
assets/images/whitecam.png
0 → 100644
891 Bytes
assets/js/app.min.js
0 → 100644
| /*! AdminLTE app.js | |||
| * ================ | |||
| * Main JS application file for AdminLTE v2. This file | |||
| * should be included in all pages. It controls some layout | |||
| * options and implements exclusive AdminLTE plugins. | |||
| * | |||
| * @Author Almsaeed Studio | |||
| * @Support <http://www.almsaeedstudio.com> | |||
| * @Email <[email protected]> | |||
| * @version 2.3.0 | |||
| * @license MIT <http://opensource.org/licenses/MIT> | |||
| */ | |||
| function _init(){"use strict";$.AdminLTE.layout={activate:function(){var a=this;a.fix(),a.fixSidebar(),$(window,".wrapper").resize(function(){a.fix(),a.fixSidebar()})},fix:function(){var a=$(".main-header").outerHeight()+$(".main-footer").outerHeight(),b=$(window).height(),c=$(".sidebar").height();if($("body").hasClass("fixed"))$(".content-wrapper, .right-side").css("min-height",b-$(".main-footer").outerHeight());else{var d;b>=c?($(".content-wrapper, .right-side").css("min-height",b-a),d=b-a):($(".content-wrapper, .right-side").css("min-height",c),d=c);var e=$($.AdminLTE.options.controlSidebarOptions.selector);"undefined"!=typeof e&&e.height()>d&&$(".content-wrapper, .right-side").css("min-height",e.height())}},fixSidebar:function(){return $("body").hasClass("fixed")?("undefined"==typeof $.fn.slimScroll&&window.console&&window.console.error("Error: the fixed layout requires the slimscroll plugin!"),void($.AdminLTE.options.sidebarSlimScroll&&"undefined"!=typeof $.fn.slimScroll&&($(".sidebar").slimScroll({destroy:!0}).height("auto"),$(".sidebar").slimscroll({height:$(window).height()-$(".main-header").height()+"px",color:"rgba(0,0,0,0.2)",size:"3px"})))):void("undefined"!=typeof $.fn.slimScroll&&$(".sidebar").slimScroll({destroy:!0}).height("auto"))}},$.AdminLTE.pushMenu={activate:function(a){var b=$.AdminLTE.options.screenSizes;$(a).on("click",function(a){a.preventDefault(),$(window).width()>b.sm-1?$("body").hasClass("sidebar-collapse")?$("body").removeClass("sidebar-collapse").trigger("expanded.pushMenu"):$("body").addClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").hasClass("sidebar-open")?$("body").removeClass("sidebar-open").removeClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").addClass("sidebar-open").trigger("expanded.pushMenu")}),$(".content-wrapper").click(function(){$(window).width()<=b.sm-1&&$("body").hasClass("sidebar-open")&&$("body").removeClass("sidebar-open")}),($.AdminLTE.options.sidebarExpandOnHover||$("body").hasClass("fixed")&&$("body").hasClass("sidebar-mini"))&&this.expandOnHover()},expandOnHover:function(){var a=this,b=$.AdminLTE.options.screenSizes.sm-1;$(".main-sidebar").hover(function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-collapse")&&$(window).width()>b&&a.expand()},function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-expanded-on-hover")&&$(window).width()>b&&a.collapse()})},expand:function(){$("body").removeClass("sidebar-collapse").addClass("sidebar-expanded-on-hover")},collapse:function(){$("body").hasClass("sidebar-expanded-on-hover")&&$("body").removeClass("sidebar-expanded-on-hover").addClass("sidebar-collapse")}},$.AdminLTE.tree=function(a){var b=this,c=$.AdminLTE.options.animationSpeed;$(document).on("click",a+" li a",function(a){var d=$(this),e=d.next();if(e.is(".treeview-menu")&&e.is(":visible"))e.slideUp(c,function(){e.removeClass("menu-open")}),e.parent("li").removeClass("active");else if(e.is(".treeview-menu")&&!e.is(":visible")){var f=d.parents("ul").first(),g=f.find("ul:visible").slideUp(c);g.removeClass("menu-open");var h=d.parent("li");e.slideDown(c,function(){e.addClass("menu-open"),f.find("li.active").removeClass("active"),h.addClass("active"),b.layout.fix()})}e.is(".treeview-menu")&&a.preventDefault()})},$.AdminLTE.controlSidebar={activate:function(){var a=this,b=$.AdminLTE.options.controlSidebarOptions,c=$(b.selector),d=$(b.toggleBtnSelector);d.on("click",function(d){d.preventDefault(),c.hasClass("control-sidebar-open")||$("body").hasClass("control-sidebar-open")?a.close(c,b.slide):a.open(c,b.slide)});var e=$(".control-sidebar-bg");a._fix(e),$("body").hasClass("fixed")?a._fixForFixed(c):$(".content-wrapper, .right-side").height()<c.height()&&a._fixForContent(c)},open:function(a,b){b?a.addClass("control-sidebar-open"):$("body").addClass("control-sidebar-open")},close:function(a,b){b?a.removeClass("control-sidebar-open"):$("body").removeClass("control-sidebar-open")},_fix:function(a){var b=this;$("body").hasClass("layout-boxed")?(a.css("position","absolute"),a.height($(".wrapper").height()),$(window).resize(function(){b._fix(a)})):a.css({position:"fixed",height:"auto"})},_fixForFixed:function(a){a.css({position:"fixed","max-height":"100%",overflow:"auto","padding-bottom":"50px"})},_fixForContent:function(a){$(".content-wrapper, .right-side").css("min-height",a.height())}},$.AdminLTE.boxWidget={selectors:$.AdminLTE.options.boxWidgetOptions.boxWidgetSelectors,icons:$.AdminLTE.options.boxWidgetOptions.boxWidgetIcons,animationSpeed:$.AdminLTE.options.animationSpeed,activate:function(a){var b=this;a||(a=document),$(a).on("click",b.selectors.collapse,function(a){a.preventDefault(),b.collapse($(this))}),$(a).on("click",b.selectors.remove,function(a){a.preventDefault(),b.remove($(this))})},collapse:function(a){var b=this,c=a.parents(".box").first(),d=c.find("> .box-body, > .box-footer, > form >.box-body, > form > .box-footer");c.hasClass("collapsed-box")?(a.children(":first").removeClass(b.icons.open).addClass(b.icons.collapse),d.slideDown(b.animationSpeed,function(){c.removeClass("collapsed-box")})):(a.children(":first").removeClass(b.icons.collapse).addClass(b.icons.open),d.slideUp(b.animationSpeed,function(){c.addClass("collapsed-box")}))},remove:function(a){var b=a.parents(".box").first();b.slideUp(this.animationSpeed)}}}if("undefined"==typeof jQuery)throw new Error("AdminLTE requires jQuery");$.AdminLTE={},$.AdminLTE.options={navbarMenuSlimscroll:!0,navbarMenuSlimscrollWidth:"3px",navbarMenuHeight:"200px",animationSpeed:500,sidebarToggleSelector:"[data-toggle='offcanvas']",sidebarPushMenu:!0,sidebarSlimScroll:!0,sidebarExpandOnHover:!1,enableBoxRefresh:!0,enableBSToppltip:!0,BSTooltipSelector:"[data-toggle='tooltip']",enableFastclick:!0,enableControlSidebar:!0,controlSidebarOptions:{toggleBtnSelector:"[data-toggle='control-sidebar']",selector:".control-sidebar",slide:!0},enableBoxWidget:!0,boxWidgetOptions:{boxWidgetIcons:{collapse:"fa-minus",open:"fa-plus",remove:"fa-times"},boxWidgetSelectors:{remove:'[data-widget="remove"]',collapse:'[data-widget="collapse"]'}},directChat:{enable:!0,contactToggleSelector:'[data-widget="chat-pane-toggle"]'},colors:{lightBlue:"#3c8dbc",red:"#f56954",green:"#00a65a",aqua:"#00c0ef",yellow:"#f39c12",blue:"#0073b7",navy:"#001F3F",teal:"#39CCCC",olive:"#3D9970",lime:"#01FF70",orange:"#FF851B",fuchsia:"#F012BE",purple:"#8E24AA",maroon:"#D81B60",black:"#222222",gray:"#d2d6de"},screenSizes:{xs:480,sm:768,md:992,lg:1200}},$(function(){"use strict";$("body").removeClass("hold-transition"),"undefined"!=typeof AdminLTEOptions&&$.extend(!0,$.AdminLTE.options,AdminLTEOptions);var a=$.AdminLTE.options;_init(),$.AdminLTE.layout.activate(),$.AdminLTE.tree(".sidebar"),a.enableControlSidebar&&$.AdminLTE.controlSidebar.activate(),a.navbarMenuSlimscroll&&"undefined"!=typeof $.fn.slimscroll&&$(".navbar .menu").slimscroll({height:a.navbarMenuHeight,alwaysVisible:!1,size:a.navbarMenuSlimscrollWidth}).css("width","100%"),a.sidebarPushMenu&&$.AdminLTE.pushMenu.activate(a.sidebarToggleSelector),a.enableBSToppltip&&$("body").tooltip({selector:a.BSTooltipSelector}),a.enableBoxWidget&&$.AdminLTE.boxWidget.activate(),a.enableFastclick&&"undefined"!=typeof FastClick&&FastClick.attach(document.body),a.directChat.enable&&$(document).on("click",a.directChat.contactToggleSelector,function(){var a=$(this).parents(".direct-chat").first();a.toggleClass("direct-chat-contacts-open")}),$('.btn-group[data-toggle="btn-toggle"]').each(function(){var a=$(this);$(this).find(".btn").on("click",function(b){a.find(".btn.active").removeClass("active"),$(this).addClass("active"),b.preventDefault()})})}),function(a){"use strict";a.fn.boxRefresh=function(b){function c(a){a.append(f),e.onLoadStart.call(a)}function d(a){a.find(f).remove(),e.onLoadDone.call(a)}var e=a.extend({trigger:".refresh-btn",source:"",onLoadStart:function(a){return a},onLoadDone:function(a){return a}},b),f=a('<div class="overlay"><div class="fa fa-refresh fa-spin"></div></div>');return this.each(function(){if(""===e.source)return void(window.console&&window.console.log("Please specify a source first - boxRefresh()"));var b=a(this),f=b.find(e.trigger).first();f.on("click",function(a){a.preventDefault(),c(b),b.find(".box-body").load(e.source,function(){d(b)})})})}}(jQuery),function(a){"use strict";a.fn.activateBox=function(){a.AdminLTE.boxWidget.activate(this)}}(jQuery),function(a){"use strict";a.fn.todolist=function(b){var c=a.extend({onCheck:function(a){return a},onUncheck:function(a){return a}},b);return this.each(function(){"undefined"!=typeof a.fn.iCheck?(a("input",this).on("ifChecked",function(){var b=a(this).parents("li").first();b.toggleClass("done"),c.onCheck.call(b)}),a("input",this).on("ifUnchecked",function(){var b=a(this).parents("li").first();b.toggleClass("done"),c.onUncheck.call(b)})):a("input",this).on("change",function(){var b=a(this).parents("li").first();b.toggleClass("done"),a("input",b).is(":checked")?c.onCheck.call(b):c.onUncheck.call(b)})})}}(jQuery); | |||
| \ No newline at end of file |
assets/js/bootbox.min.js
0 → 100644
assets/js/bootstrap-datepicker.js
0 → 100644
assets/js/bootstrap-imageupload.js
0 → 100644
assets/js/bootstrap.min.js
0 → 100644
assets/js/ckeditor.js
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
assets/js/clockpicker.js
0 → 100644
assets/js/custom-script.js
0 → 100644
assets/js/dataTables.bootstrap.min.js
0 → 100644
assets/js/jQuery-2.1.4.min.js
0 → 100644
assets/js/jquery.dataTables.min.js
0 → 100644
assets/js/jquery.tablednd.js
0 → 100644
| /** | |||
| * TableDnD plug-in for JQuery, allows you to drag and drop table rows | |||
| * You can set up various options to control how the system will work | |||
| * Copyright © Denis Howlett <[email protected]> | |||
| * Licensed like jQuery, see http://docs.jquery.com/License. | |||
| * | |||
| * Configuration options: | |||
| * | |||
| * onDragStyle | |||
| * This is the style that is assigned to the row during drag. There are limitations to the styles that can be | |||
| * associated with a row (such as you can't assign a border—well you can, but it won't be | |||
| * displayed). (So instead consider using onDragClass.) The CSS style to apply is specified as | |||
| * a map (as used in the jQuery css(...) function). | |||
| * onDropStyle | |||
| * This is the style that is assigned to the row when it is dropped. As for onDragStyle, there are limitations | |||
| * to what you can do. Also this replaces the original style, so again consider using onDragClass which | |||
| * is simply added and then removed on drop. | |||
| * onDragClass | |||
| * This class is added for the duration of the drag and then removed when the row is dropped. It is more | |||
| * flexible than using onDragStyle since it can be inherited by the row cells and other content. The default | |||
| * is class is tDnD_whileDrag. So to use the default, simply customise this CSS class in your | |||
| * stylesheet. | |||
| * onDrop | |||
| * Pass a function that will be called when the row is dropped. The function takes 2 parameters: the table | |||
| * and the row that was dropped. You can work out the new order of the rows by using | |||
| * table.rows. | |||
| * onDragStart | |||
| * Pass a function that will be called when the user starts dragging. The function takes 2 parameters: the | |||
| * table and the row which the user has started to drag. | |||
| * onAllowDrop | |||
| * Pass a function that will be called as a row is over another row. If the function returns true, allow | |||
| * dropping on that row, otherwise not. The function takes 2 parameters: the dragged row and the row under | |||
| * the cursor. It returns a boolean: true allows the drop, false doesn't allow it. | |||
| * scrollAmount | |||
| * This is the number of pixels to scroll if the user moves the mouse cursor to the top or bottom of the | |||
| * window. The page should automatically scroll up or down as appropriate (tested in IE6, IE7, Safari, FF2, | |||
| * FF3 beta) | |||
| * | |||
| * Other ways to control behaviour: | |||
| * | |||
| * Add class="nodrop" to any rows for which you don't want to allow dropping, and class="nodrag" to any rows | |||
| * that you don't want to be draggable. | |||
| * | |||
| * Inside the onDrop method you can also call $.tableDnD.serialize() this returns a string of the form | |||
| * <tableID>[]=<rowID1>&<tableID>[]=<rowID2> so that you can send this back to the server. The table must have | |||
| * an ID as must all the rows. | |||
| * | |||
| * Known problems: | |||
| * - Auto-scoll has some problems with IE7 (it scrolls even when it shouldn't), work-around: set scrollAmount to 0 | |||
| * | |||
| * Version 0.2: 2008-02-20 First public version | |||
| * Version 0.3: 2008-02-07 Added onDragStart option | |||
| * Made the scroll amount configurable (default is 5 as before) | |||
| * Version 0.4: 2008-03-15 Changed the noDrag/noDrop attributes to nodrag/nodrop classes | |||
| * Added onAllowDrop to control dropping | |||
| * Fixed a bug which meant that you couldn't set the scroll amount in both directions | |||
| * Added serialise method | |||
| */ | |||
| jQuery.tableDnD = { | |||
| /** Keep hold of the current table being dragged */ | |||
| currentTable : null, | |||
| /** Keep hold of the current drag object if any */ | |||
| dragObject: null, | |||
| /** The current mouse offset */ | |||
| mouseOffset: null, | |||
| /** Remember the old value of Y so that we don't do too much processing */ | |||
| oldY: 0, | |||
| /** Actually build the structure */ | |||
| build: function(options) { | |||
| // Make sure options exists | |||
| options = options || {}; | |||
| // Set up the defaults if any | |||
| this.each(function() { | |||
| // Remember the options | |||
| this.tableDnDConfig = { | |||
| onDragStyle: options.onDragStyle, | |||
| onDropStyle: options.onDropStyle, | |||
| // Add in the default class for whileDragging | |||
| onDragClass: options.onDragClass ? options.onDragClass : "tDnD_whileDrag", | |||
| onDrop: options.onDrop, | |||
| onDragStart: options.onDragStart, | |||
| scrollAmount: options.scrollAmount ? options.scrollAmount : 5 | |||
| }; | |||
| // Now make the rows draggable | |||
| jQuery.tableDnD.makeDraggable(this); | |||
| }); | |||
| // Now we need to capture the mouse up and mouse move event | |||
| // We can use bind so that we don't interfere with other event handlers | |||
| jQuery(document) | |||
| .bind('mousemove', jQuery.tableDnD.mousemove) | |||
| .bind('mouseup', jQuery.tableDnD.mouseup); | |||
| // Don't break the chain | |||
| return this; | |||
| }, | |||
| /** This function makes all the rows on the table draggable apart from those marked as "NoDrag" */ | |||
| makeDraggable: function(table) { | |||
| // Now initialise the rows | |||
| var rows = table.rows; //getElementsByTagName("tr") | |||
| var config = table.tableDnDConfig; | |||
| for (var i=0; i<rows.length; i++) { | |||
| // To make non-draggable rows, add the nodrag class (eg for Category and Header rows) | |||
| // inspired by John Tarr and Famic | |||
| var nodrag = $(rows[i]).hasClass("nodrag"); | |||
| if (! nodrag) { //There is no NoDnD attribute on rows I want to drag | |||
| jQuery(rows[i]).mousedown(function(ev) { | |||
| if (ev.target.tagName == "TD") { | |||
| jQuery.tableDnD.dragObject = this; | |||
| jQuery.tableDnD.currentTable = table; | |||
| jQuery.tableDnD.mouseOffset = jQuery.tableDnD.getMouseOffset(this, ev); | |||
| if (config.onDragStart) { | |||
| // Call the onDrop method if there is one | |||
| config.onDragStart(table, this); | |||
| } | |||
| return false; | |||
| } | |||
| }).css("cursor", "move"); // Store the tableDnD object | |||
| } | |||
| } | |||
| }, | |||
| /** Get the mouse coordinates from the event (allowing for browser differences) */ | |||
| mouseCoords: function(ev){ | |||
| if(ev.pageX || ev.pageY){ | |||
| return {x:ev.pageX, y:ev.pageY}; | |||
| } | |||
| return { | |||
| x:ev.clientX + document.body.scrollLeft - document.body.clientLeft, | |||
| y:ev.clientY + document.body.scrollTop - document.body.clientTop | |||
| }; | |||
| }, | |||
| /** Given a target element and a mouse event, get the mouse offset from that element. | |||
| To do this we need the element's position and the mouse position */ | |||
| getMouseOffset: function(target, ev) { | |||
| ev = ev || window.event; | |||
| var docPos = this.getPosition(target); | |||
| var mousePos = this.mouseCoords(ev); | |||
| return {x:mousePos.x - docPos.x, y:mousePos.y - docPos.y}; | |||
| }, | |||
| /** Get the position of an element by going up the DOM tree and adding up all the offsets */ | |||
| getPosition: function(e){ | |||
| var left = 0; | |||
| var top = 0; | |||
| /** Safari fix -- thanks to Luis Chato for this! */ | |||
| if (e.offsetHeight == 0) { | |||
| /** Safari 2 doesn't correctly grab the offsetTop of a table row | |||
| this is detailed here: | |||
| http://jacob.peargrove.com/blog/2006/technical/table-row-offsettop-bug-in-safari/ | |||
| the solution is likewise noted there, grab the offset of a table cell in the row - the firstChild. | |||
| note that firefox will return a text node as a first child, so designing a more thorough | |||
| solution may need to take that into account, for now this seems to work in firefox, safari, ie */ | |||
| e = e.firstChild; // a table cell | |||
| } | |||
| while (e.offsetParent){ | |||
| left += e.offsetLeft; | |||
| top += e.offsetTop; | |||
| e = e.offsetParent; | |||
| } | |||
| left += e.offsetLeft; | |||
| top += e.offsetTop; | |||
| return {x:left, y:top}; | |||
| }, | |||
| mousemove: function(ev) { | |||
| if (jQuery.tableDnD.dragObject == null) { | |||
| return; | |||
| } | |||
| var dragObj = jQuery(jQuery.tableDnD.dragObject); | |||
| var config = jQuery.tableDnD.currentTable.tableDnDConfig; | |||
| var mousePos = jQuery.tableDnD.mouseCoords(ev); | |||
| var y = mousePos.y - jQuery.tableDnD.mouseOffset.y; | |||
| //auto scroll the window | |||
| var yOffset = window.pageYOffset; | |||
| if (document.all) { | |||
| // Windows version | |||
| //yOffset=document.body.scrollTop; | |||
| if (typeof document.compatMode != 'undefined' && | |||
| document.compatMode != 'BackCompat') { | |||
| yOffset = document.documentElement.scrollTop; | |||
| } | |||
| else if (typeof document.body != 'undefined') { | |||
| yOffset=document.body.scrollTop; | |||
| } | |||
| } | |||
| if (mousePos.y-yOffset < config.scrollAmount) { | |||
| window.scrollBy(0, -config.scrollAmount); | |||
| } else { | |||
| var windowHeight = window.innerHeight ? window.innerHeight | |||
| : document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight; | |||
| if (windowHeight-(mousePos.y-yOffset) < config.scrollAmount) { | |||
| window.scrollBy(0, config.scrollAmount); | |||
| } | |||
| } | |||
| if (y != jQuery.tableDnD.oldY) { | |||
| // work out if we're going up or down... | |||
| var movingDown = y > jQuery.tableDnD.oldY; | |||
| // update the old value | |||
| jQuery.tableDnD.oldY = y; | |||
| // update the style to show we're dragging | |||
| if (config.onDragClass) { | |||
| dragObj.addClass(config.onDragClass); | |||
| } else { | |||
| dragObj.css(config.onDragStyle); | |||
| } | |||
| // If we're over a row then move the dragged row to there so that the user sees the | |||
| // effect dynamically | |||
| var currentRow = jQuery.tableDnD.findDropTargetRow(dragObj, y); | |||
| if (currentRow) { | |||
| // TODO worry about what happens when there are multiple TBODIES | |||
| if (movingDown && jQuery.tableDnD.dragObject != currentRow) { | |||
| jQuery.tableDnD.dragObject.parentNode.insertBefore(jQuery.tableDnD.dragObject, currentRow.nextSibling); | |||
| } else if (! movingDown && jQuery.tableDnD.dragObject != currentRow) { | |||
| jQuery.tableDnD.dragObject.parentNode.insertBefore(jQuery.tableDnD.dragObject, currentRow); | |||
| } | |||
| } | |||
| } | |||
| return false; | |||
| }, | |||
| /** We're only worried about the y position really, because we can only move rows up and down */ | |||
| findDropTargetRow: function(draggedRow, y) { | |||
| var rows = jQuery.tableDnD.currentTable.rows; | |||
| for (var i=0; i<rows.length; i++) { | |||
| var row = rows[i]; | |||
| var rowY = this.getPosition(row).y; | |||
| var rowHeight = parseInt(row.offsetHeight)/2; | |||
| if (row.offsetHeight == 0) { | |||
| rowY = this.getPosition(row.firstChild).y; | |||
| rowHeight = parseInt(row.firstChild.offsetHeight)/2; | |||
| } | |||
| // Because we always have to insert before, we need to offset the height a bit | |||
| if ((y > rowY - rowHeight) && (y < (rowY + rowHeight))) { | |||
| // that's the row we're over | |||
| // If it's the same as the current row, ignore it | |||
| if (row == draggedRow) {return null;} | |||
| var config = jQuery.tableDnD.currentTable.tableDnDConfig; | |||
| if (config.onAllowDrop) { | |||
| if (config.onAllowDrop(draggedRow, row)) { | |||
| return row; | |||
| } else { | |||
| return null; | |||
| } | |||
| } else { | |||
| // If a row has nodrop class, then don't allow dropping (inspired by John Tarr and Famic) | |||
| var nodrop = $(row).hasClass("nodrop"); | |||
| if (! nodrop) { | |||
| return row; | |||
| } else { | |||
| return null; | |||
| } | |||
| } | |||
| return row; | |||
| } | |||
| } | |||
| return null; | |||
| }, | |||
| mouseup: function(e) { | |||
| if (jQuery.tableDnD.currentTable && jQuery.tableDnD.dragObject) { | |||
| var droppedRow = jQuery.tableDnD.dragObject; | |||
| var config = jQuery.tableDnD.currentTable.tableDnDConfig; | |||
| // If we have a dragObject, then we need to release it, | |||
| // The row will already have been moved to the right place so we just reset stuff | |||
| if (config.onDragClass) { | |||
| jQuery(droppedRow).removeClass(config.onDragClass); | |||
| } else { | |||
| jQuery(droppedRow).css(config.onDropStyle); | |||
| } | |||
| jQuery.tableDnD.dragObject = null; | |||
| if (config.onDrop) { | |||
| // Call the onDrop method if there is one | |||
| config.onDrop(jQuery.tableDnD.currentTable, droppedRow); | |||
| } | |||
| jQuery.tableDnD.currentTable = null; // let go of the table too | |||
| } | |||
| }, | |||
| serialize: function() { | |||
| if (jQuery.tableDnD.currentTable) { | |||
| var result = ""; | |||
| var tableId = jQuery.tableDnD.currentTable.id; | |||
| var rows = jQuery.tableDnD.currentTable.rows; | |||
| for (var i=0; i<rows.length; i++) { | |||
| if (result.length > 0) result += "&"; | |||
| result += tableId + '[]=' + rows[i].id; | |||
| } | |||
| return result; | |||
| } else { | |||
| return "Error: No Table id set, you need to set an id on your table and every row"; | |||
| } | |||
| } | |||
| } | |||
| jQuery.fn.extend( | |||
| { | |||
| tableDnD : jQuery.tableDnD.build | |||
| } | |||
| ); | |||
| \ No newline at end of file |
assets/js/moment.min.js
0 → 100644
assets/js/morris.min.js
0 → 100644
assets/js/pace.js
0 → 100644
assets/js/parsley.min.js
0 → 100644
| /*! | |||
| * Parsley.js | |||
| * Version 2.2.0-rc4 - built Thu, Oct 29th 2015, 4:25 pm | |||
| * http://parsleyjs.org | |||
| * Guillaume Potier - <[email protected]> | |||
| * Marc-Andre Lafortune - <[email protected]> | |||
| * MIT Licensed | |||
| */ | |||
| !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):e.parsley=t(e.jQuery)}(this,function(e){"use strict";function t(e,t){return e.parsleyAdaptedCallback||(e.parsleyAdaptedCallback=function(){var i=Array.prototype.slice.call(arguments,0);i.unshift(this),e.apply(t||M,i)}),e.parsleyAdaptedCallback}function i(e){return 0===e.lastIndexOf(O,0)?e.substr(O.length):e}var n=1,r={},s={attr:function(e,t,i){var n,r,s,a=new RegExp("^"+t,"i");if("undefined"==typeof i)i={};else for(n in i)i.hasOwnProperty(n)&&delete i[n];if("undefined"==typeof e||"undefined"==typeof e[0])return i;for(s=e[0].attributes,n=s.length;n--;)r=s[n],r&&r.specified&&a.test(r.name)&&(i[this.camelize(r.name.slice(t.length))]=this.deserializeValue(r.value));return i},checkAttr:function(e,t,i){return e.is("["+t+i+"]")},setAttr:function(e,t,i,n){e[0].setAttribute(this.dasherize(t+i),String(n))},generateID:function(){return""+n++},deserializeValue:function(t){var i;try{return t?"true"==t||("false"==t?!1:"null"==t?null:isNaN(i=Number(t))?/^[\[\{]/.test(t)?e.parseJSON(t):t:i):t}catch(n){return t}},camelize:function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},dasherize:function(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},warn:function(){window.console&&"function"==typeof window.console.warn&&window.console.warn.apply(window.console,arguments)},warnOnce:function(e){r[e]||(r[e]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){r={}},trimString:function(e){return e.replace(/^\s+|\s+$/g,"")},objectCreate:Object.create||function(){var e=function(){};return function(t){if(arguments.length>1)throw Error("Second argument not supported");if("object"!=typeof t)throw TypeError("Argument must be an object");e.prototype=t;var i=new e;return e.prototype=null,i}}()},a=s,o={namespace:"data-parsley-",inputs:"input, textarea, select",excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden]",priorityEnabled:!0,multiple:null,group:null,uiEnabled:!0,validationThreshold:3,focus:"first",trigger:!1,errorClass:"parsley-error",successClass:"parsley-success",classHandler:function(e){},errorsContainer:function(e){},errorsWrapper:'<ul class="parsley-errors-list"></ul>',errorTemplate:"<li></li>"},l=function(){};l.prototype={asyncSupport:!0,actualizeOptions:function(){return a.attr(this.$element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(e){this.domOptions=a.objectCreate(this.parent.options),this.options=a.objectCreate(this.domOptions);for(var t in e)e.hasOwnProperty(t)&&(this.options[t]=e[t]);this.actualizeOptions()},_listeners:null,on:function(e,t){this._listeners=this._listeners||{};var i=this._listeners[e]=this._listeners[e]||[];return i.push(t),this},subscribe:function(t,i){e.listenTo(this,t.toLowerCase(),i)},off:function(e,t){var i=this._listeners&&this._listeners[e];if(i)if(t)for(var n=i.length;n--;)i[n]===t&&i.splice(n,1);else delete this._listeners[e];return this},unsubscribe:function(t,i){e.unsubscribeTo(this,t.toLowerCase())},trigger:function(e,t,i){t=t||this;var n,r=this._listeners&&this._listeners[e];if(r)for(var s=r.length;s--;)if(n=r[s].call(t,t,i),n===!1)return n;return this.parent?this.parent.trigger(e,t,i):!0},reset:function(){if("ParsleyForm"!==this.__class__)return this._trigger("reset");for(var e=0;e<this.fields.length;e++)this.fields[e]._trigger("reset");this._trigger("reset")},destroy:function(){if("ParsleyForm"!==this.__class__)return this.$element.removeData("Parsley"),this.$element.removeData("ParsleyFieldMultiple"),void this._trigger("destroy");for(var e=0;e<this.fields.length;e++)this.fields[e].destroy();this.$element.removeData("Parsley"),this._trigger("destroy")},asyncIsValid:function(){return a.warnOnce("asyncIsValid is deprecated; please use whenIsValid instead"),this.whenValid.apply(this,arguments)},_findRelatedMultiple:function(){return this.parent.$element.find("["+this.options.namespace+'multiple="'+this.options.multiple+'"]')}};var u={string:function(e){return e},integer:function(e){if(isNaN(e))throw'Requirement is not an integer: "'+e+'"';return parseInt(e,10)},number:function(e){if(isNaN(e))throw'Requirement is not a number: "'+e+'"';return parseFloat(e)},reference:function(t){var i=e(t);if(0===i.length)throw'No such reference: "'+t+'"';return i},"boolean":function(e){return"false"!==e},object:function(e){return a.deserializeValue(e)},regexp:function(e){var t="";return/^\/.*\/(?:[gimy]*)$/.test(e)?(t=e.replace(/.*\/([gimy]*)$/,"$1"),e=e.replace(new RegExp("^/(.*?)/"+t+"$"),"$1")):e="^"+e+"$",new RegExp(e,t)}},d=function(e,t){var i=e.match(/^\s*\[(.*)\]\s*$/);if(!i)throw'Requirement is not an array: "'+e+'"';var n=i[1].split(",").map(a.trimString);if(n.length!==t)throw"Requirement has "+n.length+" values when "+t+" are needed";return n},h=function(e,t){var i=u[e||"string"];if(!i)throw'Unknown requirement specification: "'+e+'"';return i(t)},p=function(e,t,i){var n=null,r={};for(var s in e)if(s){var a=i(s);"string"==typeof a&&(a=h(e[s],a)),r[s]=a}else n=h(e[s],t);return[n,r]},f=function(t){e.extend(!0,this,t)};f.prototype={validate:function(t,i){if(this.fn)return arguments.length>3&&(i=[].slice.call(arguments,1,-1)),this.fn.call(this,t,i);if(e.isArray(t)){if(!this.validateMultiple)throw"Validator `"+this.name+"` does not handle multiple values";return this.validateMultiple.apply(this,arguments)}if(this.validateNumber)return isNaN(t)?!1:(arguments[0]=parseFloat(arguments[0]),this.validateNumber.apply(this,arguments));if(this.validateString)return this.validateString.apply(this,arguments);throw"Validator `"+this.name+"` only handles multiple values"},parseRequirements:function(t,i){if("string"!=typeof t)return e.isArray(t)?t:[t];var n=this.requirementType;if(e.isArray(n)){for(var r=d(t,n.length),s=0;s<r.length;s++)r[s]=h(n[s],r[s]);return r}return e.isPlainObject(n)?p(n,t,i):[h(n,t)]},requirementType:"string",priority:2};var c=function(e,t){this.__class__="ParsleyValidatorRegistry",this.locale="en",this.init(e||{},t||{})},m={email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,number:/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/,integer:/^-?\d+$/,digits:/^\d+$/,alphanum:/^\w+$/i,url:new RegExp("^(?:(?:https?|ftp)://)?(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$","i")};m.range=m.number,c.prototype={init:function(t,i){this.catalog=i,this.validators=e.extend({},this.validators);for(var n in t)this.addValidator(n,t[n].fn,t[n].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function(e){if("undefined"==typeof this.catalog[e])throw new Error(e+" is not available in the catalog");return this.locale=e,this},addCatalog:function(e,t,i){return"object"==typeof t&&(this.catalog[e]=t),!0===i?this.setLocale(e):this},addMessage:function(e,t,i){return"undefined"==typeof this.catalog[e]&&(this.catalog[e]={}),this.catalog[e][t]=i,this},addMessages:function(e,t){for(var i in t)this.addMessage(e,i,t[i]);return this},addValidator:function(e,t,i){if(this.validators[e])a.warn('Validator "'+e+'" is already defined.');else if(o.hasOwnProperty(e))return void a.warn('"'+e+'" is a restricted keyword and is not a valid validator name.');return this._setValidator.apply(this,arguments)},updateValidator:function(e,t,i){return this.validators[e]?this._setValidator(this,arguments):(a.warn('Validator "'+e+'" is not already defined.'),this.addValidator.apply(this,arguments))},removeValidator:function(e){return this.validators[e]||a.warn('Validator "'+e+'" is not defined.'),delete this.validators[e],this},_setValidator:function(e,t,i){"object"!=typeof t&&(t={fn:t,priority:i}),t.validate||(t=new f(t)),this.validators[e]=t;for(var n in t.messages||{})this.addMessage(n,e,t.messages[n]);return this},getErrorMessage:function(e){var t;if("type"===e.name){var i=this.catalog[this.locale][e.name]||{};t=i[e.requirements]}else t=this.formatMessage(this.catalog[this.locale][e.name],e.requirements);return t||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function(e,t){if("object"==typeof t){for(var i in t)e=this.formatMessage(e,t[i]);return e}return"string"==typeof e?e.replace(new RegExp("%s","i"),t):""},validators:{notblank:{validateString:function(e){return/\S/.test(e)},priority:2},required:{validateMultiple:function(e){return e.length>0},validateString:function(e){return/\S/.test(e)},priority:512},type:{validateString:function(e,t){var i=m[t];if(!i)throw new Error("validator type `"+t+"` is not supported");return i.test(e)},priority:256},pattern:{validateString:function(e,t){return t.test(e)},requirementType:"regexp",priority:64},minlength:{validateString:function(e,t){return e.length>=t},requirementType:"integer",priority:30},maxlength:{validateString:function(e,t){return e.length<=t},requirementType:"integer",priority:30},length:{validateString:function(e,t,i){return e.length>=t&&e.length<=i},requirementType:["integer","integer"],priority:30},mincheck:{validateMultiple:function(e,t){return e.length>=t},requirementType:"integer",priority:30},maxcheck:{validateMultiple:function(e,t){return e.length<=t},requirementType:"integer",priority:30},check:{validateMultiple:function(e,t,i){return e.length>=t&&e.length<=i},requirementType:["integer","integer"],priority:30},min:{validateNumber:function(e,t){return e>=t},requirementType:"number",priority:30},max:{validateNumber:function(e,t){return t>=e},requirementType:"number",priority:30},range:{validateNumber:function(e,t,i){return e>=t&&i>=e},requirementType:["number","number"],priority:30},equalto:{validateString:function(t,i){var n=e(i);return n.length?t===n.val():t===i},priority:256}}};var y=function(e){this.__class__="ParsleyUI"};y.prototype={listen:function(){var e=this;return window.Parsley.on("form:init",function(){e.setupForm(this)}).on("field:init",function(){e.setupField(this)}).on("field:validated",function(){e.reflow(this)}).on("form:validated",function(){e.focus(this)}).on("field:reset",function(){e.reset(this)}).on("form:destroy",function(){e.destroy(this)}).on("field:destroy",function(){e.destroy(this)}),this},reflow:function(e){if("undefined"!=typeof e._ui&&!1!==e._ui.active){var t=this._diff(e.validationResult,e._ui.lastValidationResult);e._ui.lastValidationResult=e.validationResult,e._ui.validatedOnce=!0,this.manageStatusClass(e),this.manageErrorsMessages(e,t),this.actualizeTriggers(e),(t.kept.length||t.added.length)&&!0!==e._ui.failedOnce&&this.manageFailingFieldTrigger(e)}},getErrorsMessages:function(e){if(!0===e.validationResult)return[];for(var t=[],i=0;i<e.validationResult.length;i++)t.push(e.validationResult[i].errorMessage||this._getErrorMessage(e,e.validationResult[i].assert));return t},manageStatusClass:function(e){e.hasConstraints()&&e.needsValidation()&&!0===e.validationResult?this._successClass(e):e.validationResult.length>0?this._errorClass(e):this._resetClass(e)},manageErrorsMessages:function(t,i){if("undefined"==typeof t.options.errorsMessagesDisabled){if("undefined"!=typeof t.options.errorMessage)return i.added.length||i.kept.length?(this._insertErrorWrapper(t),0===t._ui.$errorsWrapper.find(".parsley-custom-error-message").length&&t._ui.$errorsWrapper.append(e(t.options.errorTemplate).addClass("parsley-custom-error-message")),t._ui.$errorsWrapper.addClass("filled").find(".parsley-custom-error-message").html(t.options.errorMessage)):t._ui.$errorsWrapper.removeClass("filled").find(".parsley-custom-error-message").remove();for(var n=0;n<i.removed.length;n++)this.removeError(t,i.removed[n].assert.name,!0);for(n=0;n<i.added.length;n++)this.addError(t,i.added[n].assert.name,i.added[n].errorMessage,i.added[n].assert,!0);for(n=0;n<i.kept.length;n++)this.updateError(t,i.kept[n].assert.name,i.kept[n].errorMessage,i.kept[n].assert,!0)}},addError:function(t,i,n,r,s){this._insertErrorWrapper(t),t._ui.$errorsWrapper.addClass("filled").append(e(t.options.errorTemplate).addClass("parsley-"+i).html(n||this._getErrorMessage(t,r))),!0!==s&&this._errorClass(t)},updateError:function(e,t,i,n,r){e._ui.$errorsWrapper.addClass("filled").find(".parsley-"+t).html(i||this._getErrorMessage(e,n)),!0!==r&&this._errorClass(e)},removeError:function(e,t,i){e._ui.$errorsWrapper.removeClass("filled").find(".parsley-"+t).remove(),!0!==i&&this.manageStatusClass(e)},focus:function(e){if(e._focusedField=null,!0===e.validationResult||"none"===e.options.focus)return null;for(var t=0;t<e.fields.length;t++){var i=e.fields[t];if(!0!==i.validationResult&&i.validationResult.length>0&&"undefined"==typeof i.options.noFocus&&(e._focusedField=i.$element,"first"===e.options.focus))break}return null===e._focusedField?null:e._focusedField.focus()},_getErrorMessage:function(e,t){var i=t.name+"Message";return"undefined"!=typeof e.options[i]?window.Parsley.formatMessage(e.options[i],t.requirements):window.Parsley.getErrorMessage(t)},_diff:function(e,t,i){for(var n=[],r=[],s=0;s<e.length;s++){for(var a=!1,o=0;o<t.length;o++)if(e[s].assert.name===t[o].assert.name){a=!0;break}a?r.push(e[s]):n.push(e[s])}return{kept:r,added:n,removed:i?[]:this._diff(t,e,!0).added}},setupForm:function(t){t.$element.on("submit.Parsley",!1,e.proxy(t.onSubmitValidate,t)),t.$element.on("click.Parsley",'input[type="submit"], button[type="submit"]',e.proxy(t.onSubmitButton,t)),!1!==t.options.uiEnabled&&t.$element.attr("novalidate","")},setupField:function(t){var i={active:!1};!1!==t.options.uiEnabled&&(i.active=!0,t.$element.attr(t.options.namespace+"id",t.__id__),i.$errorClassHandler=this._manageClassHandler(t),i.errorsWrapperId="parsley-id-"+(t.options.multiple?"multiple-"+t.options.multiple:t.__id__),i.$errorsWrapper=e(t.options.errorsWrapper).attr("id",i.errorsWrapperId),i.lastValidationResult=[],i.validatedOnce=!1,i.validationInformationVisible=!1,t._ui=i,this.actualizeTriggers(t))},_manageClassHandler:function(t){if("string"==typeof t.options.classHandler&&e(t.options.classHandler).length)return e(t.options.classHandler);var i=t.options.classHandler(t);return"undefined"!=typeof i&&i.length?i:!t.options.multiple||t.$element.is("select")?t.$element:t.$element.parent()},_insertErrorWrapper:function(t){var i;if(0!==t._ui.$errorsWrapper.parent().length)return t._ui.$errorsWrapper.parent();if("string"==typeof t.options.errorsContainer){if(e(t.options.errorsContainer).length)return e(t.options.errorsContainer).append(t._ui.$errorsWrapper);a.warn("The errors container `"+t.options.errorsContainer+"` does not exist in DOM")}else"function"==typeof t.options.errorsContainer&&(i=t.options.errorsContainer(t));if("undefined"!=typeof i&&i.length)return i.append(t._ui.$errorsWrapper);var n=t.$element;return t.options.multiple&&(n=n.parent()),n.after(t._ui.$errorsWrapper)},actualizeTriggers:function(t){var i=t.$element;if(t.options.multiple&&(i=e("["+t.options.namespace+'multiple="'+t.options.multiple+'"]')),i.off(".Parsley"),!1!==t.options.trigger){var n=t.options.trigger.replace(/^\s+/g,"").replace(/\s+$/g,"");""!==n&&i.on(n.split(" ").join(".Parsley ")+".Parsley",e.proxy("function"==typeof t.eventValidate?t.eventValidate:this.eventValidate,t))}},eventValidate:function(e){new RegExp("key").test(e.type)&&!this._ui.validationInformationVisible&&this.getValue().length<=this.options.validationThreshold||(this._ui.validatedOnce=!0,this.validate())},manageFailingFieldTrigger:function(t){return t._ui.failedOnce=!0,t.options.multiple&&e("["+t.options.namespace+'multiple="'+t.options.multiple+'"]').each(function(){return new RegExp("change","i").test(e(this).parsley().options.trigger||"")?void 0:e(this).on("change.ParsleyFailedOnce",!1,e.proxy(t.validate,t))}),t.$element.is("select")&&!new RegExp("change","i").test(t.options.trigger||"")?t.$element.on("change.ParsleyFailedOnce",!1,e.proxy(t.validate,t)):new RegExp("keyup","i").test(t.options.trigger||"")?void 0:t.$element.on("keyup.ParsleyFailedOnce",!1,e.proxy(t.validate,t))},reset:function(e){this.actualizeTriggers(e),e.$element.off(".ParsleyFailedOnce"),"undefined"!=typeof e._ui&&"ParsleyForm"!==e.__class__&&(e._ui.$errorsWrapper.removeClass("filled").children().remove(),this._resetClass(e),e._ui.validatedOnce=!1,e._ui.lastValidationResult=[],e._ui.validationInformationVisible=!1,e._ui.failedOnce=!1)},destroy:function(e){this.reset(e),"ParsleyForm"!==e.__class__&&("undefined"!=typeof e._ui&&e._ui.$errorsWrapper.remove(),delete e._ui)},_successClass:function(e){e._ui.validationInformationVisible=!0,e._ui.$errorClassHandler.removeClass(e.options.errorClass).addClass(e.options.successClass)},_errorClass:function(e){e._ui.validationInformationVisible=!0,e._ui.$errorClassHandler.removeClass(e.options.successClass).addClass(e.options.errorClass)},_resetClass:function(e){e._ui.$errorClassHandler.removeClass(e.options.successClass).removeClass(e.options.errorClass)}};var g=function(t,i,n){this.__class__="ParsleyForm",this.__id__=a.generateID(),this.$element=e(t),this.domOptions=i,this.options=n,this.parent=window.Parsley,this.fields=[],this.validationResult=null},v={pending:null,resolved:!0,rejected:!1};g.prototype={onSubmitValidate:function(e){var t=this;if(!0!==e.parsley)return this._$submitSource=this._$submitSource||this.$element.find('input[type="submit"], button[type="submit"]').first(),this._$submitSource.is("[formnovalidate]")?void(this._$submitSource=null):(e.stopImmediatePropagation(),e.preventDefault(),this.whenValidate(void 0,void 0,e).done(function(){t._submit()}).always(function(){t._$submitSource=null}),this)},onSubmitButton:function(t){this._$submitSource=e(t.target)},_submit:function(){!1!==this._trigger("submit")&&(this.$element.find(".parsley_synthetic_submit_button").remove(),this._$submitSource&&e('<input class="parsley_synthetic_submit_button" type="hidden">').attr("name",this._$submitSource.attr("name")).attr("value",this._$submitSource.attr("value")).appendTo(this.$element),this.$element.trigger(e.extend(e.Event("submit"),{parsley:!0})))},validate:function(e,t,i){return v[this.whenValidate(e,t,i).state()]},whenValidate:function(t,i,n){var r=this;this.submitEvent=n,this.validationResult=!0,this._trigger("validate"),this._refreshFields();var s=this._withoutReactualizingFormOptions(function(){return e.map(this.fields,function(e){return!t||r._isFieldInGroup(e,t)?e.whenValidate(i):void 0})}),a=function(){var t=e.Deferred();return!1===r.validationResult&&t.reject(),t.resolve().promise()};return e.when.apply(e,s).done(function(){r._trigger("success")}).fail(function(){r.validationResult=!1,r._trigger("error")}).always(function(){r._trigger("validated")}).pipe(a,a)},isValid:function(e,t){return v[this.whenValid(e,t).state()]},whenValid:function(t,i){var n=this;this._refreshFields();var r=this._withoutReactualizingFormOptions(function(){return e.map(this.fields,function(e){return!t||n._isFieldInGroup(e,t)?e.whenValid(i):void 0})});return e.when.apply(e,r)},_isFieldInGroup:function(t,i){return e.isArray(t.options.group)?-1!==e.inArray(i,t.options.group):t.options.group===i},_refreshFields:function(){return this.actualizeOptions()._bindFields()},_bindFields:function(){var t=this,i=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions(function(){this.$element.find(this.options.inputs).not(this.options.excluded).each(function(){var e=new window.Parsley.Factory(this,{},t);"ParsleyField"!==e.__class__&&"ParsleyFieldMultiple"!==e.__class__||!0===e.options.excluded||"undefined"==typeof t.fieldsMappedById[e.__class__+"-"+e.__id__]&&(t.fieldsMappedById[e.__class__+"-"+e.__id__]=e,t.fields.push(e))}),e(i).not(t.fields).each(function(){this._trigger("reset")})}),this},_withoutReactualizingFormOptions:function(e){var t=this.actualizeOptions;this.actualizeOptions=function(){return this};var i=e.call(this);return this.actualizeOptions=t,i},_trigger:function(e){return this.trigger("form:"+e)}};var _=function(t,i,n,r,s){if(!new RegExp("ParsleyField").test(t.__class__))throw new Error("ParsleyField or ParsleyFieldMultiple instance expected");var a=window.Parsley._validatorRegistry.validators[i],o=new f(a);e.extend(this,{validator:o,name:i,requirements:n,priority:r||t.options[i+"Priority"]||o.priority,isDomConstraint:!0===s}),this._parseRequirements(t.options)},w=function(e){var t=e[0].toUpperCase();return t+e.slice(1)};_.prototype={validate:function(e,t){var i=this.requirementList.slice(0);return i.unshift(e),i.push(t),this.validator.validate.apply(this.validator,i)},_parseRequirements:function(e){var t=this;this.requirementList=this.validator.parseRequirements(this.requirements,function(i){return e[t.name+w(i)]})}};var F=function(t,i,n,r){this.__class__="ParsleyField",this.__id__=a.generateID(),this.$element=e(t),"undefined"!=typeof r&&(this.parent=r),this.options=n,this.domOptions=i,this.constraints=[],this.constraintsByName={},this.validationResult=[],this._bindConstraints()},b={pending:null,resolved:!0,rejected:!1};F.prototype={validate:function(e){var t=this.whenValidate(e);switch(t.state()){case"pending":return null;case"resolved":return!0;case"rejected":return this.validationResult}},whenValidate:function(e){var t=this;return this.value=this.getValue(),this._trigger("validate"),this.whenValid(e,this.value).done(function(){t._trigger("success")}).fail(function(){t._trigger("error")}).always(function(){t._trigger("validated")})},hasConstraints:function(){return 0!==this.constraints.length},needsValidation:function(e){return"undefined"==typeof e&&(e=this.getValue()),e.length||this._isRequired()||"undefined"!=typeof this.options.validateIfEmpty?!0:!1},isValid:function(e,t){return b[this.whenValid(e,t).state()]},whenValid:function(t,i){if(this.refreshConstraints(),this.validationResult=!0,!this.hasConstraints())return e.when();if("boolean"!=typeof t&&"undefined"==typeof i&&(i=t,t=!1),("undefined"==typeof i||null===i)&&(i=this.getValue()),!this.needsValidation(i)&&!0!==t)return e.when();var n=this._getGroupedConstraints(),r=[],s=this;return e.each(n,function(t,n){var a=e.when.apply(e,e.map(n,e.proxy(s,"_validateConstraint",i)));return r.push(a),"rejected"===a.state()?!1:void 0}),e.when.apply(e,r)},_validateConstraint:function(t,i){var n=this,r=i.validate(t,this);return!1===r&&(r=e.Deferred().reject()),e.when(r).fail(function(e){!0===n.validationResult&&(n.validationResult=[]),n.validationResult.push({assert:i,errorMessage:"string"==typeof e&&e})})},getValue:function(){var e;return e="function"==typeof this.options.value?this.options.value(this):"undefined"!=typeof this.options.value?this.options.value:this.$element.val(),"undefined"==typeof e||null===e?"":this._handleWhitespace(e)},refreshConstraints:function(){return this.actualizeOptions()._bindConstraints()},addConstraint:function(e,t,i,n){if(window.Parsley._validatorRegistry.validators[e]){var r=new _(this,e,t,i,n);"undefined"!==this.constraintsByName[r.name]&&this.removeConstraint(r.name),this.constraints.push(r),this.constraintsByName[r.name]=r}return this},removeConstraint:function(e){for(var t=0;t<this.constraints.length;t++)if(e===this.constraints[t].name){this.constraints.splice(t,1);break}return delete this.constraintsByName[e],this},updateConstraint:function(e,t,i){return this.removeConstraint(e).addConstraint(e,t,i)},_bindConstraints:function(){for(var e=[],t={},i=0;i<this.constraints.length;i++)!1===this.constraints[i].isDomConstraint&&(e.push(this.constraints[i]),t[this.constraints[i].name]=this.constraints[i]);this.constraints=e,this.constraintsByName=t;for(var n in this.options)this.addConstraint(n,this.options[n],void 0,!0);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){(this.$element.hasClass("required")||this.$element.attr("required"))&&this.addConstraint("required",!0,void 0,!0),"string"==typeof this.$element.attr("pattern")&&this.addConstraint("pattern",this.$element.attr("pattern"),void 0,!0),"undefined"!=typeof this.$element.attr("min")&&"undefined"!=typeof this.$element.attr("max")?this.addConstraint("range",[this.$element.attr("min"),this.$element.attr("max")],void 0,!0):"undefined"!=typeof this.$element.attr("min")?this.addConstraint("min",this.$element.attr("min"),void 0,!0):"undefined"!=typeof this.$element.attr("max")&&this.addConstraint("max",this.$element.attr("max"),void 0,!0),"undefined"!=typeof this.$element.attr("minlength")&&"undefined"!=typeof this.$element.attr("maxlength")?this.addConstraint("length",[this.$element.attr("minlength"),this.$element.attr("maxlength")],void 0,!0):"undefined"!=typeof this.$element.attr("minlength")?this.addConstraint("minlength",this.$element.attr("minlength"),void 0,!0):"undefined"!=typeof this.$element.attr("maxlength")&&this.addConstraint("maxlength",this.$element.attr("maxlength"),void 0,!0);var e=this.$element.attr("type");return"undefined"==typeof e?this:"number"===e?"undefined"==typeof this.$element.attr("step")||0===parseFloat(this.$element.attr("step"))%1?this.addConstraint("type","integer",void 0,!0):this.addConstraint("type","number",void 0,!0):/^(email|url|range)$/i.test(e)?this.addConstraint("type",e,void 0,!0):this},_isRequired:function(){return"undefined"==typeof this.constraintsByName.required?!1:!1!==this.constraintsByName.required.requirements},_trigger:function(e){return this.trigger("field:"+e)},_handleWhitespace:function(e){return!0===this.options.trimValue&&a.warnOnce('data-parsley-trim-value="true" is deprecated, please use data-parsley-whitespace="trim"'),"squish"===this.options.whitespace&&(e=e.replace(/\s{2,}/g," ")),("trim"===this.options.whitespace||"squish"===this.options.whitespace||!0===this.options.trimValue)&&(e=a.trimString(e)),e},_getGroupedConstraints:function(){if(!1===this.options.priorityEnabled)return[this.constraints];for(var e=[],t={},i=0;i<this.constraints.length;i++){var n=this.constraints[i].priority;t[n]||e.push(t[n]=[]),t[n].push(this.constraints[i])}return e.sort(function(e,t){return t[0].priority-e[0].priority}),e}};var $=F,C=function(){this.__class__="ParsleyFieldMultiple"};C.prototype={addElement:function(e){return this.$elements.push(e),this},refreshConstraints:function(){var t;if(this.constraints=[],this.$element.is("select"))return this.actualizeOptions()._bindConstraints(),this;for(var i=0;i<this.$elements.length;i++)if(e("html").has(this.$elements[i]).length){t=this.$elements[i].data("ParsleyFieldMultiple").refreshConstraints().constraints;for(var n=0;n<t.length;n++)this.addConstraint(t[n].name,t[n].requirements,t[n].priority,t[n].isDomConstraint)}else this.$elements.splice(i,1);return this},getValue:function(){if("undefined"!=typeof this.options.value)return this.options.value;if(this.$element.is("input[type=radio]"))return this._findRelatedMultiple().filter(":checked").val()||"";if(this.$element.is("input[type=checkbox]")){var t=[];return this._findRelatedMultiple().filter(":checked").each(function(){t.push(e(this).val())}),t}return this.$element.is("select")&&null===this.$element.val()?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}};var x=function(t,i,n){this.$element=e(t);var r=this.$element.data("Parsley");if(r)return"undefined"!=typeof n&&r.parent===window.Parsley&&(r.parent=n,r._resetOptions(r.options)),r;if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if("undefined"!=typeof n&&"ParsleyForm"!==n.__class__)throw new Error("Parent instance must be a ParsleyForm instance");return this.parent=n||window.Parsley,this.init(i)};x.prototype={init:function(e){return this.__class__="Parsley",this.__version__="@@version",this.__id__=a.generateID(),this._resetOptions(e),this.$element.is("form")||a.checkAttr(this.$element,this.options.namespace,"validate")&&!this.$element.is(this.options.inputs)?this.bind("parsleyForm"):this.isMultiple()?this.handleMultiple():this.bind("parsleyField")},isMultiple:function(){return this.$element.is("input[type=radio], input[type=checkbox]")||this.$element.is("select")&&"undefined"!=typeof this.$element.attr("multiple")},handleMultiple:function(){var t,i,n=this;if(this.options.multiple||("undefined"!=typeof this.$element.attr("name")&&this.$element.attr("name").length?this.options.multiple=t=this.$element.attr("name"):"undefined"!=typeof this.$element.attr("id")&&this.$element.attr("id").length&&(this.options.multiple=this.$element.attr("id"))),this.$element.is("select")&&"undefined"!=typeof this.$element.attr("multiple"))return this.options.multiple=this.options.multiple||this.__id__,this.bind("parsleyFieldMultiple");if(!this.options.multiple)return a.warn("To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.",this.$element),this;this.options.multiple=this.options.multiple.replace(/(:|\.|\[|\]|\{|\}|\$)/g,""),"undefined"!=typeof t&&e('input[name="'+t+'"]').each(function(){e(this).is("input[type=radio], input[type=checkbox]")&&e(this).attr(n.options.namespace+"multiple",n.options.multiple)});for(var r=this._findRelatedMultiple(),s=0;s<r.length;s++)if(i=e(r.get(s)).data("Parsley"),"undefined"!=typeof i){this.$element.data("ParsleyFieldMultiple")||i.addElement(this.$element);break}return this.bind("parsleyField",!0),i||this.bind("parsleyFieldMultiple")},bind:function(t,i){var n;switch(t){case"parsleyForm":n=e.extend(new g(this.$element,this.domOptions,this.options),window.ParsleyExtend)._bindFields();break;case"parsleyField":n=e.extend(new $(this.$element,this.domOptions,this.options,this.parent),window.ParsleyExtend);break;case"parsleyFieldMultiple":n=e.extend(new $(this.$element,this.domOptions,this.options,this.parent),new C,window.ParsleyExtend)._init();break;default:throw new Error(t+"is not a supported Parsley type")}return this.options.multiple&&a.setAttr(this.$element,this.options.namespace,"multiple",this.options.multiple),"undefined"!=typeof i?(this.$element.data("ParsleyFieldMultiple",n),n):(this.$element.data("Parsley",n),n._trigger("init"),n)}};var P=e.fn.jquery.split(".");if(parseInt(P[0])<=1&&parseInt(P[1])<8)throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";P.forEach||a.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim");var V=e.extend(new l,{$element:e(document),actualizeOptions:null,_resetOptions:null,Factory:x,version:"@@version"});e.extend($.prototype,l.prototype),e.extend(g.prototype,l.prototype),e.extend(x.prototype,l.prototype),e.fn.parsley=e.fn.psly=function(t){if(this.length>1){var i=[];return this.each(function(){i.push(e(this).parsley(t))}),i}return e(this).length?new x(this,t):void a.warn("You must bind Parsley on an existing element.")},"undefined"==typeof window.ParsleyExtend&&(window.ParsleyExtend={}),V.options=e.extend(a.objectCreate(o),window.ParsleyConfig),window.ParsleyConfig=V.options, | |||
| window.Parsley=window.psly=V,window.ParsleyUtils=a;var E=window.Parsley._validatorRegistry=new c(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={},e.each("setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateValidator removeValidator".split(" "),function(t,i){window.Parsley[i]=e.proxy(E,i),window.ParsleyValidator[i]=function(){return a.warnOnce("Accessing the method '"+i+"' through ParsleyValidator is deprecated. Simply call 'window.Parsley."+i+"(...)'"),window.Parsley[i].apply(window.Parsley,arguments)}}),window.ParsleyUI="function"==typeof window.ParsleyConfig.ParsleyUI?(new window.ParsleyConfig.ParsleyUI).listen():(new y).listen(),!1!==window.ParsleyConfig.autoBind&&e(function(){e("[data-parsley-validate]").length&&e("[data-parsley-validate]").parsley()});var M=e({}),R=function(){a.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")},O="parsley:";e.listen=function(e,n){var r;if(R(),"object"==typeof arguments[1]&&"function"==typeof arguments[2]&&(r=arguments[1],n=arguments[2]),"function"!=typeof n)throw new Error("Wrong parameters");window.Parsley.on(i(e),t(n,r))},e.listenTo=function(e,n,r){if(R(),!(e instanceof $||e instanceof g))throw new Error("Must give Parsley instance");if("string"!=typeof n||"function"!=typeof r)throw new Error("Wrong parameters");e.on(i(n),t(r))},e.unsubscribe=function(e,t){if(R(),"string"!=typeof e||"function"!=typeof t)throw new Error("Wrong arguments");window.Parsley.off(i(e),t.parsleyAdaptedCallback)},e.unsubscribeTo=function(e,t){if(R(),!(e instanceof $||e instanceof g))throw new Error("Must give Parsley instance");e.off(i(t))},e.unsubscribeAll=function(t){R(),window.Parsley.off(i(t)),e("form,input,textarea,select").each(function(){var n=e(this).data("Parsley");n&&n.off(i(t))})},e.emit=function(e,t){R();var n=t instanceof $||t instanceof g,r=Array.prototype.slice.call(arguments,n?2:1);r.unshift(i(e)),n||(t=window.Parsley),t.trigger.apply(t,r)};e.extend(!0,V,{asyncValidators:{"default":{fn:function(e){return e.status>=200&&e.status<300},url:!1},reverse:{fn:function(e){return e.status<200||e.status>=300},url:!1}},addAsyncValidator:function(e,t,i,n){return V.asyncValidators[e]={fn:t,url:i||!1,options:n||{}},this},eventValidate:function(e){new RegExp("key").test(e.type)&&!this._ui.validationInformationVisible&&this.getValue().length<=this.options.validationThreshold||(this._ui.validatedOnce=!0,this.whenValidate())}}),V.addValidator("remote",{requirementType:{"":"string",validator:"string",reverse:"boolean",options:"object"},validateString:function(t,i,n,r){var s,a,o={},l=n.validator||(!0===n.reverse?"reverse":"default");if("undefined"==typeof V.asyncValidators[l])throw new Error("Calling an undefined async validator: `"+l+"`");i=V.asyncValidators[l].url||i,i.indexOf("{value}")>-1?i=i.replace("{value}",encodeURIComponent(t)):o[r.$element.attr("name")||r.$element.attr("id")]=t;var u=e.extend(!0,n.options||{},V.asyncValidators[l].options);s=e.extend(!0,{},{url:i,data:o,type:"GET"},u),r.trigger("field:ajaxoptions",r,s),a=e.param(s),"undefined"==typeof V._remoteCache&&(V._remoteCache={});var d=V._remoteCache[a]=V._remoteCache[a]||e.ajax(s),h=function(){var t=V.asyncValidators[l].fn.call(r,d,i,n);return t||(t=e.Deferred().reject()),e.when(t)};return d.then(h,h)},priority:-1}),V.on("form:submit",function(){V._remoteCache={}}),window.ParsleyExtend.addAsyncValidator=function(){return ParsleyUtils.warnOnce("Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`"),V.apply(V.addAsyncValidator,arguments)},V.addMessages("en",{defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",number:"This value should be a valid number.",integer:"This value should be a valid integer.",digits:"This value should be digits.",alphanum:"This value should be alphanumeric."},notblank:"This value should not be blank.",required:"This value is required.",pattern:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or fewer.",length:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or fewer.",check:"You must select between %s and %s choices.",equalto:"This value should be the same."}),V.setLocale("en");var q=V;return q}); | |||
| //# sourceMappingURL=parsley.min.js.map |
assets/js/raphael.min.js
0 → 100644
assets/js/select2.full.min.js
0 → 100644
6.82 KB
9.79 KB
assets/uploads/customer/4_images_(4).jpg
0 → 100644
6.82 KB