Rem code sample

This commit is contained in:
Samuel Georges 2017-07-28 01:50:37 +10:00
parent 72eb48cf2e
commit 97508c3953
1 changed files with 0 additions and 18 deletions

View File

@ -439,24 +439,6 @@ if (window.jQuery.request !== undefined) {
}
}
// function serializeArrayToObj(arr) {
// var obj = {}
// $.each(arr, function() {
// if (obj[this.name]) {
// if (!obj[this.name].push) {
// obj[this.name] = [obj[this.name]]
// }
// obj[this.name].push(this.value || '')
// }
// else {
// obj[this.name] = this.value || ''
// }
// })
// return obj
// }
$(document).on('change', 'select[data-request], input[type=radio][data-request], input[type=checkbox][data-request]', function documentOnChange() {
$(this).request()
})