Showing 59 of 202 total issues
Function data
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function (options, callback) {
var url = 'js/data/datagrid.json';
var self = this;
setTimeout(function () {
Function setValue
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setValue: function(value) {
if(!value) {
return;
}
Function show
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tooltip.prototype.show = function () {
var e = $.Event('show.bs.' + this.type)
if (this.hasContent() && this.enabled) {
this.$element.trigger(e)
Function slide
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Carousel.prototype.slide = function (type, next) {
var $active = this.$element.find('.item.active')
var $next = next || $active[type]()
var isCycling = this.interval
var direction = type == 'next' ? 'left' : 'right'
Function Datagrid
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Datagrid = function (element, options) {
this.$element = $(element);
this.$thead = this.$element.find('thead');
this.$tfoot = this.$element.find('tfoot');
this.$footer = this.$element.find('tfoot th');
Function applyPlacement
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tooltip.prototype.applyPlacement = function (offset, placement) {
var replace
var $tip = this.tip()
var width = $tip[0].offsetWidth
var height = $tip[0].offsetHeight
Function mousedown
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mousedown: function(ev) {
// Touch: Get the original event:
if (this.touchCapable && ev.type === 'touchstart') {
ev = ev.originalEvent;
Function parseDate
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parseDate: function(date, format) {
var parts = date.split(format.separator),
date = new Date(),
val;
date.setHours(0);
Function getValue
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getValue: function(format) {
var dt, values = {},
that = this,
notSelected = false;
Function show
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Modal.prototype.show = function (_relatedTarget) {
var that = this
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
this.$element.trigger(e)
Function show
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Collapse.prototype.show = function () {
if (this.transitioning || this.$element.hasClass('in')) return
var startEvent = $.Event('show.bs.collapse')
this.$element.trigger(startEvent)
Function line_time
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
line_time = function line_time(h, m) {
var now = _xdsoft_datetime.now(), optionDateTime, current_time;
now.setHours(h);
h = parseInt(now.getHours(), 10);
now.setMinutes(m);
Function backdrop
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Modal.prototype.backdrop = function (callback) {
var animate = this.$element.hasClass('fade') ? 'fade' : ''
if (this.isShown && this.options.backdrop) {
var doAnimate = $.support.transition && animate
Function checkPosition
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Affix.prototype.checkPosition = function () {
if (!this.$element.is(':visible')) return
var scrollHeight = $(document).height()
var scrollTop = this.$window.scrollTop()
Function init
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.init = function() {
var percent, scaleBy;
_this.options = $.extend({}, $.easyPieChart.defaultOptions, options);
percent = parseInt(_this.$el.data('percent'), 10);
_this.percentage = 0;
Function Spinner
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Spinner = function (element, options) {
this.$element = $(element);
this.options = $.extend({}, $.fn.spinner.defaults, options);
this.$input = this.$element.find('.spinner-input');
this.$element.on('keyup', this.$input, $.proxy(this.change, this));
Function selectItem
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
selectItem: function (el) {
var $el = $(el);
var $all = this.$element.find('.tree-selected');
var data = [];
Function setState
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setState: function () {
var canMovePrev = (this.currentStep > 1);
var firstStep = (this.currentStep === 1);
var lastStep = (this.currentStep === this.numSteps);
Function renderData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderData: function () {
var self = this;
this.$tbody.html(this.placeholderRowHTML(this.options.loadingHTML));
Function activate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tab.prototype.activate = function (element, container, callback) {
var $active = container.find('> .active')
var transition = callback
&& $.support.transition
&& $active.hasClass('fade')