Showing 5,781 of 10,536 total issues
Function MonthView
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MonthView(element, calendar) {
var t = this;
// exports
Function highlightSkeletonHtml
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
highlightSkeletonHtml: function(start, end) {
var view = this.view;
var segs = this.rangeToSegs(start, end);
var cellHtml = '';
var col = 0;
Function formatRangeWithChunks
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatRangeWithChunks(date1, date2, chunks, separator, isRTL) {
var chunkStr; // the rendering of the chunk
var leftI;
var leftStr = '';
var rightI;
Function resizableSlotEvent
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resizableSlotEvent(event, eventElement, timeElement) {
var snapDelta, prevSnapDelta;
var snapHeight = getSnapHeight();
var snapMinutes = getSnapMinutes();
eventElement.resizable({
Function drawLabel
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drawLabel(slice, startAngle, index) {
if (slice.data[0][1] == 0) {
return true;
}
Function buildCalendar
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildCalendar: function (month, year, hour, minute, second, side) {
var daysInMonth = moment([year, month]).daysInMonth();
var firstDay = moment([year, month, 1]);
var lastDay = moment([year, month, daysInMonth]);
var lastMonth = moment(firstDay).subtract(1, 'month').month();
Function clickDate
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clickDate: function (e) {
var title = $(e.target).attr('data-title');
var row = title.substr(1, 1);
var col = title.substr(3, 1);
var cal = $(e.target).parents('.calendar');
Function createNavigation
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}, t.createNavigation = function(a) {
var i = e(a.table).find(a.pageInfo.pageNavigation);
if (0 === i.length) {
if (i = e(a.pageInfo.pageNavigation), i.parents("table:first").length > 0 && i.parents("table:first") !== e(a.table)) return;
i.length > 1 && a.options.debug === !0 && console.error("More than one pagination control was found!")
Function updateTime
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateTime: function(e) {
var cal = $(e.target).closest('.calendar'),
isLeft = cal.hasClass('left');
Function approveUser
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.approveUser = function (user) {
var modalInstance = $uibModal.open({
templateUrl: 'views/users/user/approve-user.html',
controller: 'ModalApproveUserCtrl',
windowClass: "animated fadeIn",
Function editSVG
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editSVG = function(svg) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/settings/svg/svg.model.html',
controller: 'ModalEditSVGCtrl',
Function editWebMessage
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editWebMessage = function(webmessage) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/fdd/webmessage.model.html',
controller: 'ModalEditWebMessageCtrl',
Function editPoint
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editPoint = function(point) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/settings/datasource/point.model.html',
controller: 'ModalEditPointCtrl',
Function result_select
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Chosen.prototype.result_select = function(evt) {
var high, item;
if (this.result_highlight) {
high = this.result_highlight;
this.result_clear_highlight();
Function editRule
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editRule = function(rule) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/fdd/rule.model.html',
controller: 'ModalEditRuleCtrl',
Function deleteEquipmentParameter
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.deleteEquipmentParameter = function(equipmentparameter) {
SweetAlert.swal({
title: $translate.instant("SWEET.TITLE"),
text: $translate.instant("SWEET.TEXT"),
type: "warning",
Function addGateway
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addGateway = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/gateway/gateway.model.html',
controller: 'ModalAddGatewayCtrl',
windowClass: "animated fadeIn",
Function editAdvancedReport
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editAdvancedReport = function(advancedReport) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/settings/advancedreport/advancedreport.model.html',
controller: 'ModalEditAdvancedReportCtrl',
Function show
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Collapse.prototype.show = function () {
if (this.transitioning || this.$element.hasClass('in')) return
var activesData
var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
Function resetPassword
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.resetPassword = function (user) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/users/user/reset-password.model.html',
controller: 'ModalResetPasswordCtrl',