Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Rahul Aryan

    (@nerdaryan)

    This was reported before but I was not able to replicate issue. Please tell me which widget.

    Thread Starter Satwinder Rathore

    (@satwinder26890)

    I am using Recent Posts WordPress default widget. I have checked the plugin code and found the problem in the file name “/assets/min/ap-admin.min.js”. You need to check it.

    ! function(a) {
    	a.fn.serialize = function(b) {
    		return a.param(this.serializeArray(b))
    	}, a.fn.serializeArray = function(b) {
    		var c = a.extend({
    				checkboxesAsBools: !1
    			}, b || {}),
    			d = /select|textarea/i,
    			e = /text|hidden|password|search/i;
    		return this.map(function() {
    			return this.elements ? a.makeArray(this.elements) : this
    		}).filter(function() {
    			return this.name && !this.disabled && (this.checked || c.checkboxesAsBools && "checkbox" === this.type || d.test(this.nodeName) || e.test(this.type))
    		}).map(function(b, d) {
    			var e = a(this).val();
    			return null == e ? null : a.isArray(e) ? a.map(e, function(a, b) {
    				return {
    					name: d.name,
    					value: a
    				}
    			}) : {
    				name: d.name,
    				value: c.checkboxesAsBools && "checkbox" === this.type ? this.checked ? "1" : "0" : e
    			}
    		}).get()
    	}
    }(jQuery),
    Plugin Author Rahul Aryan

    (@nerdaryan)

    I will check and release a patch.

    Plugin Author Rahul Aryan

    (@nerdaryan)

    Fix pushed to github.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Breaks the number type input fields in widgets’ is closed to new replies.