UNPKG
@activeadmin/activeadmin
Version:
latest (3.3.0)
pre (4.0.0-beta15)
4.0.0-beta9
4.0.0-beta8
4.0.0-beta7
4.0.0-beta6
4.0.0-beta5
4.0.0-beta4
4.0.0-beta3
4.0.0-beta2
4.0.0-beta15
4.0.0-beta14
4.0.0-beta13
4.0.0-beta12
4.0.0-beta11
4.0.0-beta10
4.0.0-beta1
3.3.0
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.0
3.0.0
2.14.0
2.13.1
2.13.0
2.12.0
2.11.2
2.11.1
2.11.0
2.10.1
2.10.0
2.9.0
2.8.1
2.8.0
2.7.0
2.6.1
2.6.0
2.4.0-alpha-4
2.4.0-alpha-3
2.4.0-alpha-2
2.4.0-alpha-1
The administration framework for Ruby on Rails.
activeadmin.info
activeadmin/activeadmin
@activeadmin/activeadmin
/
src
/
ext
/
jquery.js
10 lines
(9 loc)
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
// `serializeArray` generates => [{ name: 'foo', value: 'bar' }]
// This function remaps it to => { foo: 'bar' }
$.fn.
serializeObject
=
function
(
) {
return
this
.
serializeArray
() .
reduce
(
(
obj, item
) =>
{ obj[item.
name
] = item.
value
return
obj }, {}); };