Update copyright and helper function names

This commit is contained in:
Samuel Georges 2016-01-06 18:50:24 +11:00
parent 7b187fc188
commit a30fc006bb
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* October CMS: front-end JavaScript framework
* http://octobercms.com
* ========================================================================
* Copyright 2014 Alexey Bobkov, Samuel Georges
* Copyright 2016 Alexey Bobkov, Samuel Georges
*
* ======================================================================== */
@ -68,7 +68,7 @@ if (window.jQuery === undefined)
var data = [$form.serialize()]
$.each($el.parents('[data-request-data]').toArray().reverse(), function extendReque(){
$.each($el.parents('[data-request-data]').toArray().reverse(), function extendRequest(){
data.push($.param(paramToObj('data-request-data', $(this).data('request-data'))))
})
@ -410,12 +410,12 @@ if (window.jQuery === undefined)
}, interval)
})
$(document).on('submit', '[data-request]', function documentOnsubmit(){
$(document).on('submit', '[data-request]', function documentOnSubmit(){
$(this).request()
return false
})
$(window).on('beforeunload', function documentOnBeforeunload() {
$(window).on('beforeunload', function documentOnBeforeUnload() {
window.ocUnloading = true
})