Commit d37aff72 authored by Franco Fichtner's avatar Franco Fichtner

src: whitespace sweep :)

parent 71675f7f
/*! /*!
* jQuery Bootgrid v1.3.1 - 09/11/2015 * jQuery Bootgrid v1.3.1 - 09/11/2015
* Copyright (c) 2014-2015 Rafael Staib (http://www.jquery-bootgrid.com) * Copyright (c) 2014-2015 Rafael Staib (http://www.jquery-bootgrid.com)
* Licensed under MIT http://www.opensource.org/licenses/MIT * Licensed under MIT http://www.opensource.org/licenses/MIT
......
/*! /*!
* jQuery Bootgrid v1.3.1 - 09/11/2015 * jQuery Bootgrid v1.3.1 - 09/11/2015
* Copyright (c) 2014-2015 Rafael Staib (http://www.jquery-bootgrid.com) * Copyright (c) 2014-2015 Rafael Staib (http://www.jquery-bootgrid.com)
* Licensed under MIT http://www.opensource.org/licenses/MIT * Licensed under MIT http://www.opensource.org/licenses/MIT
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
sortable: !(data.sortable === false), // default: true sortable: !(data.sortable === false), // default: true
visible: !(data.visible === false), // default: true visible: !(data.visible === false), // default: true
visibleInSelection: !(data.visibleInSelection === false), // default: true visibleInSelection: !(data.visibleInSelection === false), // default: true
width: ($.isNumeric(data.width)) ? data.width + "px" : width: ($.isNumeric(data.width)) ? data.width + "px" :
(typeof(data.width) === "string") ? data.width : null (typeof(data.width) === "string") ? data.width : null
}; };
that.columns.push(column); that.columns.push(column);
...@@ -390,7 +390,7 @@ ...@@ -390,7 +390,7 @@
.on("click" + namespace, selector, function (e) .on("click" + namespace, selector, function (e)
{ {
e.stopPropagation(); e.stopPropagation();
var $this = $(this), var $this = $(this),
checkbox = $this.find(checkboxSelector); checkbox = $this.find(checkboxSelector);
if (!checkbox.prop("disabled")) if (!checkbox.prop("disabled"))
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
var enable = that.columns.where(isVisible).length > 1; var enable = that.columns.where(isVisible).length > 1;
$this.parents(itemsSelector).find(selector + ":has(" + checkboxSelector + ":checked)") $this.parents(itemsSelector).find(selector + ":has(" + checkboxSelector + ":checked)")
._bgEnableAria(enable).find(checkboxSelector)._bgEnableField(enable); ._bgEnableAria(enable).find(checkboxSelector)._bgEnableField(enable);
that.element.find("tbody").empty(); // Fixes an column visualization bug that.element.find("tbody").empty(); // Fixes an column visualization bug
renderTableHeader.call(that); renderTableHeader.call(that);
loadData.call(that); loadData.call(that);
...@@ -1087,7 +1087,7 @@ ...@@ -1087,7 +1087,7 @@
* @for searchSettings * @for searchSettings
**/ **/
delay: 250, delay: 250,
/** /**
* The characters to type before the search gets executed. * The characters to type before the search gets executed.
* *
...@@ -1335,7 +1335,7 @@ ...@@ -1335,7 +1335,7 @@
* @for statusMapping * @for statusMapping
**/ **/
2: "warning", 2: "warning",
/** /**
* Specifies a dangerous or potentially negative action. * Specifies a dangerous or potentially negative action.
* *
...@@ -1519,7 +1519,7 @@ ...@@ -1519,7 +1519,7 @@
}; };
/** /**
* Searches in all rows for a specific phrase (but only in visible cells). * Searches in all rows for a specific phrase (but only in visible cells).
* The search filter will be reseted, if no argument is provided. * The search filter will be reseted, if no argument is provided.
* *
* @method search * @method search
...@@ -1664,7 +1664,7 @@ ...@@ -1664,7 +1664,7 @@
}; };
/** /**
* Sorts the rows by a given sort descriptor dictionary. * Sorts the rows by a given sort descriptor dictionary.
* The sort filter will be reseted, if no argument is provided. * The sort filter will be reseted, if no argument is provided.
* *
* @method sort * @method sort
...@@ -1825,8 +1825,8 @@ ...@@ -1825,8 +1825,8 @@
_bgBusyAria: function(busy) _bgBusyAria: function(busy)
{ {
return (busy == null || busy) ? return (busy == null || busy) ?
this._bgAria("busy", "true") : this._bgAria("busy", "true") :
this._bgAria("busy", "false"); this._bgAria("busy", "false");
}, },
...@@ -1837,29 +1837,29 @@ ...@@ -1837,29 +1837,29 @@
_bgEnableAria: function (enable) _bgEnableAria: function (enable)
{ {
return (enable == null || enable) ? return (enable == null || enable) ?
this.removeClass("disabled")._bgAria("disabled", "false") : this.removeClass("disabled")._bgAria("disabled", "false") :
this.addClass("disabled")._bgAria("disabled", "true"); this.addClass("disabled")._bgAria("disabled", "true");
}, },
_bgEnableField: function (enable) _bgEnableField: function (enable)
{ {
return (enable == null || enable) ? return (enable == null || enable) ?
this.removeAttr("disabled") : this.removeAttr("disabled") :
this.attr("disabled", "disable"); this.attr("disabled", "disable");
}, },
_bgShowAria: function (show) _bgShowAria: function (show)
{ {
return (show == null || show) ? return (show == null || show) ?
this.show()._bgAria("hidden", "false") : this.show()._bgAria("hidden", "false") :
this.hide()._bgAria("hidden", "true"); this.hide()._bgAria("hidden", "true");
}, },
_bgSelectAria: function (select) _bgSelectAria: function (select)
{ {
return (select == null || select) ? return (select == null || select) ?
this.addClass("active")._bgAria("selected", "true") : this.addClass("active")._bgAria("selected", "true") :
this.removeClass("active")._bgAria("selected", "false"); this.removeClass("active")._bgAria("selected", "false");
}, },
...@@ -1949,8 +1949,8 @@ ...@@ -1949,8 +1949,8 @@
{ {
var skip = (page - 1) * size, var skip = (page - 1) * size,
end = skip + size; end = skip + size;
return (this.length > skip) ? return (this.length > skip) ?
(this.length > end) ? this.slice(skip, end) : (this.length > end) ? this.slice(skip, end) :
this.slice(skip) : []; this.slice(skip) : [];
}; };
} }
...@@ -2039,4 +2039,4 @@ ...@@ -2039,4 +2039,4 @@
// ============ // ============
$("[data-toggle=\"bootgrid\"]").bootgrid(); $("[data-toggle=\"bootgrid\"]").bootgrid();
})(jQuery, window); })(jQuery, window);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment