serviceform/serviceform/static/jquery.are-you-sure.js
Function areYouSure
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.areYouSure = function(options) {
var settings = $.extend(
{
'message' : 'You have unsaved changes!',
Function getValue
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getValue = function($field) {
if ($field.hasClass('ays-ignore')
|| $field.hasClass('aysIgnore')
|| $field.attr('data-ays-ignore')
|| $field.attr('name') === undefined) {
Function checkForm
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var checkForm = function(evt) {
var isFieldDirty = function($field) {
var origValue = $field.data('ays-orig');
if (undefined === origValue) {