From b20ca84906eaf21f642abf4205c335f9b69e7319 Mon Sep 17 00:00:00 2001 From: Oleg Makarenko Date: Sun, 12 Oct 2014 00:03:00 +0300 Subject: [PATCH] update lendr.js `jQuery("#bookForm *[name]")` more correctly than `jQuery("#bookForm :input")` --- com_lendr/site/assets/js/lendr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com_lendr/site/assets/js/lendr.js b/com_lendr/site/assets/js/lendr.js index c3f15b3..1c56e39 100755 --- a/com_lendr/site/assets/js/lendr.js +++ b/com_lendr/site/assets/js/lendr.js @@ -2,7 +2,7 @@ function addBook() { var bookInfo = {}; - jQuery("#bookForm :input").each(function(idx,ele){ + jQuery("#bookForm *[name]").each(function(idx,ele){ bookInfo[jQuery(ele).attr('name')] = jQuery(ele).val(); }); @@ -200,4 +200,4 @@ function deleteBook(book_id,type) } } }); -} \ No newline at end of file +}