Cleaned code

pull/247/head
Abdullah Almsaeed 2015-02-20 16:46:03 -05:00
parent 45c82f5a1a
commit ffb2731764
24 changed files with 857 additions and 965 deletions

File diff suppressed because it is too large Load Diff

View File

@ -11,32 +11,31 @@
.skin-black {
//Navbar & Logo
.main-header {
.box-shadow(0px 1px 1px rgba(0, 0, 0, 0.0));
border-bottom: 1px solid #ddd;
.box-shadow(0px 1px 1px rgba(0, 0, 0, 0.05));
.navbar-toggle {
color: #333;
}
.navbar-brand {
color: #333;
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
}
> .navbar {
.navbar-variant(#fff; #333; #999; #fff);
//border-bottom: 1px solid #ddd;
> .sidebar-toggle {
color: #333;
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
}
.navbar-nav {
> li > a {
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
}
}
.navbar-custom-menu .navbar-nav,
.navbar-right {
> li {
> a {
border-left: 1px solid #ddd;
border-left: 1px solid #eee;
border-right-width: 0;
}
}
@ -44,7 +43,7 @@
}
> .logo {
.logo-variant(#fff; #333);
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
@media (max-width: @screen-header-collapse) {
.logo-variant(#222; #fff);
border-right: none;

View File

@ -155,16 +155,15 @@
*/
/* skin-black navbar */
.skin-black .main-header {
-webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0);
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0);
border-bottom: 1px solid #ddd;
-webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
}
.skin-black .main-header .navbar-toggle {
color: #333;
}
.skin-black .main-header .navbar-brand {
color: #333;
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
}
.skin-black .main-header > .navbar {
background-color: #ffffff;
@ -193,21 +192,21 @@
}
.skin-black .main-header > .navbar > .sidebar-toggle {
color: #333;
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
}
.skin-black .main-header > .navbar .navbar-nav > li > a {
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
}
.skin-black .main-header > .navbar .navbar-custom-menu .navbar-nav > li > a,
.skin-black .main-header > .navbar .navbar-right > li > a {
border-left: 1px solid #ddd;
border-left: 1px solid #eee;
border-right-width: 0;
}
.skin-black .main-header > .logo {
background-color: #ffffff;
color: #333333;
border-bottom: 0px solid transparent;
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
}
.skin-black .main-header > .logo > a {
color: #333333;

File diff suppressed because one or more lines are too long

View File

@ -4,16 +4,15 @@
*/
/* skin-black navbar */
.skin-black .main-header {
-webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0);
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0);
border-bottom: 1px solid #ddd;
-webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
}
.skin-black .main-header .navbar-toggle {
color: #333;
}
.skin-black .main-header .navbar-brand {
color: #333;
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
}
.skin-black .main-header > .navbar {
background-color: #ffffff;
@ -42,21 +41,21 @@
}
.skin-black .main-header > .navbar > .sidebar-toggle {
color: #333;
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
}
.skin-black .main-header > .navbar .navbar-nav > li > a {
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
}
.skin-black .main-header > .navbar .navbar-custom-menu .navbar-nav > li > a,
.skin-black .main-header > .navbar .navbar-right > li > a {
border-left: 1px solid #ddd;
border-left: 1px solid #eee;
border-right-width: 0;
}
.skin-black .main-header > .logo {
background-color: #ffffff;
color: #333333;
border-bottom: 0px solid transparent;
border-right: 1px solid #ddd;
border-right: 1px solid #eee;
}
.skin-black .main-header > .logo > a {
color: #333333;

View File

@ -1 +1 @@
.skin-black .main-header{-webkit-box-shadow:0 1px 1px rgba(0,0,0,0);box-shadow:0 1px 1px rgba(0,0,0,0);border-bottom:1px solid #ddd}.skin-black .main-header .navbar-toggle{color:#333}.skin-black .main-header .navbar-brand{color:#333;border-right:1px solid #ddd}.skin-black .main-header>.navbar{background-color:#fff}.skin-black .main-header>.navbar .nav>li>a{color:#333}.skin-black .main-header>.navbar .nav>li>a:hover,.skin-black .main-header>.navbar .nav>li>a:active,.skin-black .main-header>.navbar .nav>li>a:focus,.skin-black .main-header>.navbar .nav .open>a,.skin-black .main-header>.navbar .nav .open>a:hover,.skin-black .main-header>.navbar .nav .open>a:focus{background:#fff;color:#999}.skin-black .main-header>.navbar .navbar-custom-menu>.nav{margin-right:10px}.skin-black .main-header>.navbar .sidebar-toggle{color:#333}.skin-black .main-header>.navbar .sidebar-toggle:hover{color:#999;background:#fff}.skin-black .main-header>.navbar>.sidebar-toggle{color:#333;border-right:1px solid #ddd}.skin-black .main-header>.navbar .navbar-nav>li>a{border-right:1px solid #ddd}.skin-black .main-header>.navbar .navbar-custom-menu .navbar-nav>li>a,.skin-black .main-header>.navbar .navbar-right>li>a{border-left:1px solid #ddd;border-right-width:0}.skin-black .main-header>.logo{background-color:#fff;color:#333;border-bottom:0 solid transparent;border-right:1px solid #ddd}.skin-black .main-header>.logo>a{color:#333}.skin-black .main-header>.logo:hover{background:#fcfcfc}@media (max-width:767px){.skin-black .main-header>.logo{background-color:#222;color:#fff;border-bottom:0 solid transparent;border-right:none}.skin-black .main-header>.logo>a{color:#fff}.skin-black .main-header>.logo:hover{background:#1f1f1f}}.skin-black .main-header li.user-header{background-color:#222}.skin-black .content-header{background:transparent;box-shadow:none}.skin-black .user-panel>.image>img{border:1px solid #444}.skin-black .user-panel>.info,.skin-black .user-panel>.info>a{color:#eee}.skin-black .main-sidebar,.skin-black .left-side,.skin-black .wrapper{background:#222}.skin-black .sidebar>.sidebar-menu>li.header{background:#1d1d1d;color:rgba(255,255,255,0.4)}.skin-black .sidebar>.sidebar-menu>li>a{margin-right:1px;border-left:3px solid transparent}.skin-black .sidebar>.sidebar-menu>li>a:hover,.skin-black .sidebar>.sidebar-menu>li.active>a{color:#fff;background:#444;border-left-color:#fff}.skin-black .sidebar>.sidebar-menu>li>.treeview-menu{background:#333}.skin-black .sidebar a{color:#eee}.skin-black .sidebar a:hover{text-decoration:none}.skin-black .treeview-menu>li>a{color:#ccc}.skin-black .treeview-menu>li.active>a,.skin-black .treeview-menu>li>a:hover{color:#fff}.skin-black .sidebar-form{border-radius:3px;border:1px solid #3c3c3c;margin:10px 10px}.skin-black .sidebar-form input[type="text"],.skin-black .sidebar-form .btn{box-shadow:none;background-color:#3c3c3c;border:1px solid transparent;height:35px;-webkit-transition:all .3s cubic-bezier(.32, 1.25, .375, 1.15);-o-transition:all .3s cubic-bezier(.32, 1.25, .375, 1.15);transition:all .3s cubic-bezier(.32, 1.25, .375, 1.15)}.skin-black .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;border-bottom-left-radius:2px !important}.skin-black .sidebar-form input[type="text"]:focus,.skin-black .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-black .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-black .sidebar-form .btn{color:#999;border-top-left-radius:0 !important;border-top-right-radius:2px !important;border-bottom-right-radius:2px !important;border-bottom-left-radius:0 !important}
.skin-black .main-header{-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}.skin-black .main-header .navbar-toggle{color:#333}.skin-black .main-header .navbar-brand{color:#333;border-right:1px solid #eee}.skin-black .main-header>.navbar{background-color:#fff}.skin-black .main-header>.navbar .nav>li>a{color:#333}.skin-black .main-header>.navbar .nav>li>a:hover,.skin-black .main-header>.navbar .nav>li>a:active,.skin-black .main-header>.navbar .nav>li>a:focus,.skin-black .main-header>.navbar .nav .open>a,.skin-black .main-header>.navbar .nav .open>a:hover,.skin-black .main-header>.navbar .nav .open>a:focus{background:#fff;color:#999}.skin-black .main-header>.navbar .navbar-custom-menu>.nav{margin-right:10px}.skin-black .main-header>.navbar .sidebar-toggle{color:#333}.skin-black .main-header>.navbar .sidebar-toggle:hover{color:#999;background:#fff}.skin-black .main-header>.navbar>.sidebar-toggle{color:#333;border-right:1px solid #eee}.skin-black .main-header>.navbar .navbar-nav>li>a{border-right:1px solid #eee}.skin-black .main-header>.navbar .navbar-custom-menu .navbar-nav>li>a,.skin-black .main-header>.navbar .navbar-right>li>a{border-left:1px solid #eee;border-right-width:0}.skin-black .main-header>.logo{background-color:#fff;color:#333;border-bottom:0 solid transparent;border-right:1px solid #eee}.skin-black .main-header>.logo>a{color:#333}.skin-black .main-header>.logo:hover{background:#fcfcfc}@media (max-width:767px){.skin-black .main-header>.logo{background-color:#222;color:#fff;border-bottom:0 solid transparent;border-right:none}.skin-black .main-header>.logo>a{color:#fff}.skin-black .main-header>.logo:hover{background:#1f1f1f}}.skin-black .main-header li.user-header{background-color:#222}.skin-black .content-header{background:transparent;box-shadow:none}.skin-black .user-panel>.image>img{border:1px solid #444}.skin-black .user-panel>.info,.skin-black .user-panel>.info>a{color:#eee}.skin-black .main-sidebar,.skin-black .left-side,.skin-black .wrapper{background:#222}.skin-black .sidebar>.sidebar-menu>li.header{background:#1d1d1d;color:rgba(255,255,255,0.4)}.skin-black .sidebar>.sidebar-menu>li>a{margin-right:1px;border-left:3px solid transparent}.skin-black .sidebar>.sidebar-menu>li>a:hover,.skin-black .sidebar>.sidebar-menu>li.active>a{color:#fff;background:#444;border-left-color:#fff}.skin-black .sidebar>.sidebar-menu>li>.treeview-menu{background:#333}.skin-black .sidebar a{color:#eee}.skin-black .sidebar a:hover{text-decoration:none}.skin-black .treeview-menu>li>a{color:#ccc}.skin-black .treeview-menu>li.active>a,.skin-black .treeview-menu>li>a:hover{color:#fff}.skin-black .sidebar-form{border-radius:3px;border:1px solid #3c3c3c;margin:10px 10px}.skin-black .sidebar-form input[type="text"],.skin-black .sidebar-form .btn{box-shadow:none;background-color:#3c3c3c;border:1px solid transparent;height:35px;-webkit-transition:all .3s cubic-bezier(.32, 1.25, .375, 1.15);-o-transition:all .3s cubic-bezier(.32, 1.25, .375, 1.15);transition:all .3s cubic-bezier(.32, 1.25, .375, 1.15)}.skin-black .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;border-bottom-left-radius:2px !important}.skin-black .sidebar-form input[type="text"]:focus,.skin-black .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-black .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-black .sidebar-form .btn{color:#999;border-top-left-radius:0 !important;border-top-right-radius:2px !important;border-bottom-right-radius:2px !important;border-bottom-left-radius:0 !important}

2
dist/js/app.js vendored
View File

@ -27,7 +27,7 @@ if (typeof jQuery === "undefined") {
* prevents conflict with other plugins and is a better
* way to organize our code.
*/
$.AdminLTE = new Object();
$.AdminLTE = {};
/* --------------------
* - AdminLTE Options -

2
dist/js/app.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -915,7 +915,7 @@
</ul><!-- /.users-list -->
</div><!-- /.box-body -->
<div class="box-footer text-center">
<a href="javascript::;" class="uppercase">View All Users</a>
<a href="javascript::" class="uppercase">View All Users</a>
</div><!-- /.box-footer -->
</div><!--/.box -->
</div><!-- /.col -->
@ -1123,8 +1123,6 @@
<!-- jvectormap -->
<script src="plugins/jvectormap/jquery-jvectormap-1.2.2.min.js" type="text/javascript"></script>
<script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js" type="text/javascript"></script>
<!-- jQuery Knob Chart -->
<script src="plugins/jqueryKnob/jquery.knob.js" type="text/javascript"></script>
<!-- daterangepicker -->
<script src="plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<!-- datepicker -->

View File

@ -613,7 +613,7 @@
//Boolean - whether to make the chart responsive
responsive: true,
maintainAspectRatio: false
}
};
barChartOptions.datasetFill = false;
barChart.Bar(barChartData, barChartOptions);

View File

@ -732,7 +732,7 @@
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js" type="text/javascript"></script>
<!-- jQuery Knob -->
<script src="../../plugins/jqueryKnob/jquery.knob.js" type="text/javascript"></script>
<script src="../../plugins/knob/jquery.knob.js" type="text/javascript"></script>
<!-- Sparkline -->
<script src="../../plugins/sparkline/jquery.sparkline.min.js" type="text/javascript"></script>
@ -937,7 +937,7 @@
}
lastmousetime = timenow;
setTimeout(mdraw, mrefreshinterval);
}
};
// We could use setInterval instead, but I prefer to do it this way
setTimeout(mdraw, mrefreshinterval);
}

View File

@ -608,7 +608,7 @@
$(".mailbox-star").click(function (e) {
e.preventDefault();
//detect type
var $this = $(this).find("a > i")
var $this = $(this).find("a > i");
var glyph = $this.hasClass("glyphicon");
var fa = $this.hasClass("fa");

View File

@ -44,8 +44,8 @@
window.addEventListener('message', handler, false);
} else {
window.attachEvent("onmessage", handler);
};
};
}
};
var _sendCmd = function(o) {
var str,
type = Object.prototype.toString,
@ -57,9 +57,8 @@
if (type.call(o.message) == "[object Object]") {
(o.message['id']) ? o.message['id'] : o.message['id'] = id;
message = o.message;
};
str = JSON.stringify(message, fn);
}
str = JSON.stringify(message, fn);
target.postMessage(str, '*');
};
@ -88,7 +87,7 @@
if (scriptTag.readyState == "loaded" ||
scriptTag.readyState == "complete") {
scriptTag.onreadystatechange = null;
setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1)
setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1);
callback();
}
};
@ -98,13 +97,11 @@
setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1);
callback();
};
};
scriptTag.src = src;
}
scriptTag.src = src;
document.getElementsByTagName("head")[0].appendChild(scriptTag);
};
window.onload = function(){
}
window.onload = function(){
loadScript(appString, function(){
manageMessageTmp.send({
'id': 'iframeOnload',

View File

@ -4716,7 +4716,7 @@
{
throw new Error(sAlert);
}
return;
}
else if ( window.console && console.log )
{

View File

@ -1115,9 +1115,8 @@ if (!document.createElement('canvas').getContext) {
x: Z * (aX * m[0][0] + aY * m[1][0] + m[2][0]) - Z2,
y: Z * (aX * m[0][1] + aY * m[1][1] + m[2][1]) - Z2
};
};
contextPrototype.save = function() {
}
contextPrototype.save = function() {
var o = {};
copyState(this, o);
this.aStack_.push(o);
@ -1366,7 +1365,7 @@ if (!document.createElement('canvas').getContext) {
case null:
case '':
this.repetition_ = 'repeat';
break
break;
case 'repeat-x':
case 'repeat-y':
case 'no-repeat':

View File

@ -68,7 +68,7 @@
};
return o.normalize();
}
};
// extract CSS color property from element, going up in the DOM
// if it's "transparent"
@ -89,7 +89,7 @@
c = "transparent";
return $.color.parse(c);
}
};
// parse CSS color string (like "rgb(10, 32, 43)" or "#fff"),
// returns color object, if parsing failed, you get black (0, 0,
@ -130,7 +130,7 @@
res = lookupColors[name] || [0, 0, 0];
return m(res[0], res[1], res[2]);
}
}
};
var lookupColors = {
aqua:[0,255,255],

View File

@ -94,7 +94,7 @@ Google Maps).
callback();
});
}
};
$.plot.image.load = function (urls, callback) {
var missing = urls.length, loaded = {};

View File

@ -318,7 +318,7 @@ More detail and specific examples can be found in the included HTML file.
if (options.series.pie.tilt <= 0.8) {
drawShadow();
}
} while (!drawPie() && attempts < REDRAW_ATTEMPTS)
} while (!drawPie() && attempts < REDRAW_ATTEMPTS);
if (attempts >= REDRAW_ATTEMPTS) {
clear();

View File

@ -114,9 +114,8 @@ API.txt for details.
sourceObj[sourceMethod] = function() {
return targetObj[targetMethod].apply(targetObj, arguments);
};
};
var utc = {
}
var utc = {
date: d
};
@ -137,9 +136,8 @@ API.txt for details.
}
return utc;
};
// select time zone strategy. This returns a date-like object tied to the
}
// select time zone strategy. This returns a date-like object tied to the
// desired timezone
function dateGenerator(ts, opts) {

View File

@ -13,9 +13,7 @@
}
})(function($, moment) {
;;
var defaults = {
var defaults = {
titleRangeSeparator: ' \u2014 ', // emphasized dash
monthYearFormat: 'MMMM YYYY', // required for en. other languages rely on datepicker computable option
@ -126,9 +124,7 @@ var rtlDefaults = {
}
};
;;
var fc = $.fullCalendar = { version: "2.2.5" };
var fc = $.fullCalendar = { version: "2.2.5" };
var fcViews = fc.views = {};
@ -206,9 +202,7 @@ function isForcedAtomicOption(name) {
// FIX: find a different solution for view-option-hashes and have a whitelist
// for options that can be recursively merged.
;;
var langOptionHash = fc.langs = {}; // initialize and expose
var langOptionHash = fc.langs = {}; // initialize and expose
// TODO: document the structure and ordering of a FullCalendar lang file
@ -357,8 +351,6 @@ function getMomentLocaleData(langCode) {
// Also, sets it as the default.
fc.lang('en', englishDefaults);
;;
// exports
fc.intersectionToSeg = intersectionToSeg;
fc.applyAll = applyAll;
@ -839,9 +831,7 @@ function debounce(func, wait) {
};
}
;;
var ambigDateOfMonthRegex = /^\s*\d{4}-\d\d$/;
var ambigDateOfMonthRegex = /^\s*\d{4}-\d\d$/;
var ambigTimeOrZoneRegex =
/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/;
var newMomentProto = moment.fn; // where we will attach our new methods
@ -1286,8 +1276,6 @@ setLocalValues = allowValueOptimization ? function(mom, a) {
moment.updateOffset(mom, false); // keepTime=false
} : setMomentValues;
;;
// Single Date Formatting
// -------------------------------------------------------------------------------------------------
@ -1516,9 +1504,7 @@ function chunkFormatString(formatStr) {
return chunks;
}
;;
fc.Class = Class; // export
fc.Class = Class; // export
// class that all other classes will inherit from
function Class() { }
@ -1557,9 +1543,7 @@ Class.extend = function(members) {
Class.mixin = function(members) {
copyOwnProps(members.prototype || members, this.prototype);
};
;;
/* A rectangular panel that is absolutely positioned over other content
/* A rectangular panel that is absolutely positioned over other content
------------------------------------------------------------------------------------------------------------------------
Options:
- className (string)
@ -1726,9 +1710,7 @@ var Popover = Class.extend({
});
;;
/* A "coordinate map" converts pixel coordinates into an associated cell, which has an associated date
/* A "coordinate map" converts pixel coordinates into an associated cell, which has an associated date
------------------------------------------------------------------------------------------------------------------------
Common interface:
@ -1888,9 +1870,7 @@ var ComboCoordMap = Class.extend({
});
;;
/* Tracks mouse movements over a CoordMap and raises events about which cell the mouse is over.
/* Tracks mouse movements over a CoordMap and raises events about which cell the mouse is over.
----------------------------------------------------------------------------------------------------------------------*/
// TODO: very useful to have a handler that gets called upon cellOut OR when dragging stops (for cleanup)
@ -2313,9 +2293,7 @@ function isCellsEqual(cell1, cell2) {
return false;
}
;;
/* Creates a clone of an element and lets it track the mouse as it moves
/* Creates a clone of an element and lets it track the mouse as it moves
----------------------------------------------------------------------------------------------------------------------*/
var MouseFollower = Class.extend({
@ -2500,9 +2478,7 @@ var MouseFollower = Class.extend({
});
;;
/* A utility class for rendering <tr> rows.
/* A utility class for rendering <tr> rows.
----------------------------------------------------------------------------------------------------------------------*/
// It leverages methods of the subclass and the View to determine custom rendering behavior for each row "type"
// (such as highlight rows, day rows, helper rows, etc).
@ -2604,9 +2580,7 @@ var RowRenderer = Class.extend({
});
;;
/* An abstract class comprised of a "grid" of cells that each represent a specific datetime
/* An abstract class comprised of a "grid" of cells that each represent a specific datetime
----------------------------------------------------------------------------------------------------------------------*/
var Grid = fc.Grid = RowRenderer.extend({
@ -3184,9 +3158,7 @@ var Grid = fc.Grid = RowRenderer.extend({
});
;;
/* Event-rendering and event-interaction methods for the abstract Grid class
/* Event-rendering and event-interaction methods for the abstract Grid class
----------------------------------------------------------------------------------------------------------------------*/
Grid.mixin({
@ -4085,9 +4057,7 @@ function getDraggedElMeta(el) {
}
;;
/* A component that renders a grid of whole-days that runs horizontally. There can be multiple rows, one per week.
/* A component that renders a grid of whole-days that runs horizontally. There can be multiple rows, one per week.
----------------------------------------------------------------------------------------------------------------------*/
var DayGrid = Grid.extend({
@ -4554,9 +4524,7 @@ var DayGrid = Grid.extend({
});
;;
/* Event-rendering methods for the DayGrid class
/* Event-rendering methods for the DayGrid class
----------------------------------------------------------------------------------------------------------------------*/
DayGrid.mixin({
@ -4859,9 +4827,7 @@ function compareDaySegCols(a, b) {
return a.leftCol - b.leftCol;
}
;;
/* Methods relate to limiting the number events for a given day on a DayGrid
/* Methods relate to limiting the number events for a given day on a DayGrid
----------------------------------------------------------------------------------------------------------------------*/
// NOTE: all the segs being passed around in here are foreground segs
@ -5214,9 +5180,7 @@ DayGrid.mixin({
});
;;
/* A component that renders one or more columns of vertical time slots
/* A component that renders one or more columns of vertical time slots
----------------------------------------------------------------------------------------------------------------------*/
var TimeGrid = Grid.extend({
@ -5724,9 +5688,7 @@ var TimeGrid = Grid.extend({
});
;;
/* Event-rendering methods for the TimeGrid class
/* Event-rendering methods for the TimeGrid class
----------------------------------------------------------------------------------------------------------------------*/
TimeGrid.mixin({
@ -6132,9 +6094,7 @@ function compareForwardSlotSegs(seg1, seg2) {
compareSegs(seg1, seg2);
}
;;
/* An abstract class from which other views inherit from
/* An abstract class from which other views inherit from
----------------------------------------------------------------------------------------------------------------------*/
var View = fc.View = Class.extend({
@ -6862,10 +6822,7 @@ var View = fc.View = Class.extend({
});
;;
function Calendar(element, instanceOptions) {
function Calendar(element, instanceOptions) {
var t = this;
@ -7668,9 +7625,7 @@ function Calendar(element, instanceOptions) {
}
;;
/* Top toolbar area with buttons and title
/* Top toolbar area with buttons and title
----------------------------------------------------------------------------------------------------------------------*/
// TODO: rename all header-related things to "toolbar"
@ -7896,9 +7851,7 @@ function Header(calendar, options) {
}
;;
fc.sourceNormalizers = [];
fc.sourceNormalizers = [];
fc.sourceFetchers = [];
var ajaxDefaults = {
@ -8983,9 +8936,7 @@ function backupEventDates(event) {
event._end = event.end ? event.end.clone() : null;
}
;;
/* An abstract class for the "basic" views, as well as month view. Renders one or more rows of day cells.
/* An abstract class for the "basic" views, as well as month view. Renders one or more rows of day cells.
----------------------------------------------------------------------------------------------------------------------*/
// It is a manager for a DayGrid subcomponent, which does most of the heavy lifting.
// It is responsible for managing width/height.
@ -9296,9 +9247,7 @@ var BasicView = fcViews.basic = View.extend({
});
;;
/* A month view with day cells running in rows (one-per-week) and columns
/* A month view with day cells running in rows (one-per-week) and columns
----------------------------------------------------------------------------------------------------------------------*/
setDefaults({
@ -9350,27 +9299,21 @@ var MonthView = fcViews.month = BasicView.extend({
MonthView.duration = { months: 1 };
;;
/* A week view with simple day cells running horizontally
/* A week view with simple day cells running horizontally
----------------------------------------------------------------------------------------------------------------------*/
fcViews.basicWeek = {
type: 'basic',
duration: { weeks: 1 }
};
;;
/* A view with a single simple day cell
/* A view with a single simple day cell
----------------------------------------------------------------------------------------------------------------------*/
fcViews.basicDay = {
type: 'basic',
duration: { days: 1 }
};
;;
/* An abstract class for all agenda-related views. Displays one more columns with time slots running vertically.
/* An abstract class for all agenda-related views. Displays one more columns with time slots running vertically.
----------------------------------------------------------------------------------------------------------------------*/
// Is a manager for the TimeGrid subcomponent and possibly the DayGrid subcomponent (if allDaySlot is on).
// Responsible for managing width/height.
@ -9772,24 +9715,18 @@ fcViews.agenda = View.extend({ // AgendaView
});
;;
/* A week view with an all-day cell area at the top, and a time grid below
/* A week view with an all-day cell area at the top, and a time grid below
----------------------------------------------------------------------------------------------------------------------*/
fcViews.agendaWeek = {
type: 'agenda',
duration: { weeks: 1 }
};
;;
/* A day view with an all-day cell area at the top, and a time grid below
/* A day view with an all-day cell area at the top, and a time grid below
----------------------------------------------------------------------------------------------------------------------*/
fcViews.agendaDay = {
type: 'agenda',
duration: { days: 1 }
};
;;
});

View File

@ -44,7 +44,7 @@
stack = stack.add(self);
} else {
stack = stack.add(self.find(handle));
};
}
});
};
@ -64,12 +64,11 @@
tidy(self, 'ifDestroyed');
} else {
operate(self, true, options);
};
// Fire method's callback
}
// Fire method's callback
if ($.isFunction(fire)) {
fire();
};
}
});
// Customization
@ -97,14 +96,12 @@
// Selector limit
if (selector == _checkbox || selector == _radio) {
handle = 'input[type="' + selector + '"]';
};
// Clickable area limit
}
// Clickable area limit
if (area < -50) {
area = -50;
};
// Walk around the selector
}
// Walk around the selector
walker(this);
return stack.each(function() {
@ -172,9 +169,8 @@
parent += '"';
});
};
// Wrap input
}
// Wrap input
parent = self.wrap(parent + '/>')[_callback]('ifCreated').parent().append(settings.insert);
// Layer addition
@ -213,19 +209,17 @@
} else {
parent[_add](hoverClass);
item[_add](labelHoverClass);
};
};
if (_mobile) {
}
}
if (_mobile) {
event.stopPropagation();
} else {
return false;
};
};
}
}
});
};
// Input events
}
// Input events
self.on(_click + '.i focus.i blur.i keyup.i keydown.i keypress.i', function(event) {
var type = event[_type],
key = event.keyCode;
@ -241,10 +235,9 @@
off(self, _checked);
} else {
on(self, _checked);
};
};
return false;
}
}
return false;
// Keyup
} else if (type == 'keyup' && node[_type] == _radio) {
@ -253,7 +246,7 @@
// Focus/blur
} else if (/us|ur/.test(type)) {
parent[type == 'blur' ? _remove : _add](focusClass);
};
}
});
// Helper events
@ -282,27 +275,25 @@
// State is off
} else {
parent[_remove](toggle + ' ' + activeClass);
};
// Label hover
}
// Label hover
if (label.length && labelHover && toggle == hoverClass) {
// mouseout|touchend
label[/ut|nd/.test(type) ? _remove : _add](labelHoverClass);
};
};
if (_mobile) {
}
}
if (_mobile) {
event.stopPropagation();
} else {
return false;
};
};
}
}
});
});
} else {
return this;
};
}
};
// Do something with inputs
@ -332,28 +323,25 @@
on(input, state, true);
} else {
off(input, state, true);
};
};
}
}
} else if (!direct || method == 'toggle') {
// Helper or label was clicked
if (!direct) {
input[_callback]('ifClicked');
};
// Toggle checked state
}
// Toggle checked state
if (active) {
if (node[_type] !== _radio) {
off(input, state);
};
}
} else {
on(input, state);
};
};
};
// Add checked, disabled or indeterminate state
}
}
}
// Add checked, disabled or indeterminate state
function on(input, state, keep) {
var node = input[0],
parent = input.parent(),
@ -377,11 +365,10 @@
inputs.each(function() {
if (this !== node && $(this).data(_iCheck)) {
off($(this), state);
};
}
});
};
// Indeterminate state
}
// Indeterminate state
if (indeterminate) {
// Add indeterminate state
@ -390,32 +377,27 @@
// Remove checked state
if (node[_checked]) {
off(input, _checked, 'force');
};
// Checked or disabled state
}
// Checked or disabled state
} else {
// Add checked or disabled state
if (!keep) {
node[state] = true;
};
// Remove indeterminate state
}
// Remove indeterminate state
if (checked && node[_indeterminate]) {
off(input, _indeterminate, false);
};
};
// Trigger callbacks
}
}
// Trigger callbacks
callbacks(input, checked, state, keep);
};
// Add proper cursor
}
// Add proper cursor
if (node[_disabled] && !!option(input, _cursor, true)) {
parent.find('.' + _iCheckHelper).css(_cursor, 'default');
};
// Add state class
}
// Add state class
parent[_add](specific || option(input, state) || '');
// Set ARIA attribute
@ -423,9 +405,8 @@
// Remove regular state class
parent[_remove](regular || option(input, callback) || '');
};
// Remove checked, disabled or indeterminate state
}
// Remove checked, disabled or indeterminate state
function off(input, state, keep) {
var node = input[0],
parent = input.parent(),
@ -442,18 +423,15 @@
// Toggle state
if (indeterminate || !keep || keep == 'force') {
node[state] = false;
};
// Trigger callbacks
}
// Trigger callbacks
callbacks(input, checked, callback, keep);
};
// Add proper cursor
}
// Add proper cursor
if (!node[_disabled] && !!option(input, _cursor, true)) {
parent.find('.' + _iCheckHelper).css(_cursor, 'pointer');
};
// Remove state class
}
// Remove state class
parent[_remove](specific || option(input, state) || '');
// Set ARIA attribute
@ -461,9 +439,8 @@
// Add regular state class
parent[_add](regular || option(input, callback) || '');
};
// Remove all traces
}
// Remove all traces
function tidy(input, callback) {
if (input.data(_iCheck)) {
@ -473,34 +450,29 @@
// Callback
if (callback) {
input[_callback](callback);
};
// Unbind events
}
// Unbind events
input.off('.i').unwrap();
$(_label + '[for="' + input[0].id + '"]').add(input.closest(_label)).off('.i');
};
};
// Get some option
}
}
// Get some option
function option(input, state, regular) {
if (input.data(_iCheck)) {
return input.data(_iCheck).o[state + (regular ? '' : 'Class')];
};
};
// Capitalize some string
}
}
// Capitalize some string
function capitalize(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
};
// Executable handlers
}
// Executable handlers
function callbacks(input, checked, callback, keep) {
if (!keep) {
if (checked) {
input[_callback]('ifToggled');
};
input[_callback]('ifChanged')[_callback]('if' + capitalize(callback));
};
};
}
input[_callback]('ifChanged')[_callback]('if' + capitalize(callback));
}
}
})(window.jQuery || window.Zepto);

View File

@ -464,7 +464,6 @@
while (--position > 0 && !isMask(position)) {
}
;
return position;
}
@ -854,9 +853,6 @@
return end - (lengthBefore - buffer.length); //return new start position
}
;
function HandleRemove(input, k, pos) {
if (opts.numericInput || isRTL) {
switch (k) {
@ -1419,8 +1415,7 @@
return getActiveBuffer().join('');
}
}
};
}
$.inputmask = {
//options default
defaults: {

View File

@ -89,8 +89,7 @@ Allows for using regular expressions as a mask
if (currentToken.matches.length > 0)
opts.regexTokens.push(currentToken);
};
}
function validateRegexToken(token, fromGroup) {
var isvalid = false;
if (fromGroup) {

View File

@ -2923,7 +2923,7 @@ $.widget("ui.resizable", $.ui.mouse, {
//TODO: What's that good for? There's not anything to be executed left
if(!$(this.handles[i]).length) {
continue;
}
}
};