public/assets/form/form.js
File form.js
has 523 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function ($) {
/*
*
* provides feedback form for zammad
Function init
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Plugin.prototype.init = function () {
var _this = this,
params = {}
_this.log('debug', 'init', this._src)
Function render
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Plugin.prototype.render = function(e) {
var _this = this
_this.closeModal()
_this.modalOpenTime = new Date()
_this.log('debug', 'modalOpenTime:', _this.modalOpenTime)
Function submit
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Plugin.prototype.submit = function() {
var _this = this
// check min modal open time
if (_this.modalOpenTime) {