Skip to content

Commit

Permalink
Fix a little error in boolean field
Browse files Browse the repository at this point in the history
  • Loading branch information
goinnn committed Aug 14, 2013
1 parent 8ea8644 commit 8f5aec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Information
===========

.. image:: https://badge.fury.io/py/django-inplaceedit.png
:target: http://badge.fury.io/py/django-inplaceedit
:target: https://badge.fury.io/py/django-inplaceedit

.. image:: https://pypip.in/d/django-inplaceedit/badge.png
:target: https://pypi.python.org/pypi/django-inplaceedit
:target: https://pypi.python.org/pypi/django-inplaceedit

Inplace Edit Form is a Django application that allows you to inline edition of some data from the database

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
(function($){
$(document).ready(function () {
function getValueBoolean(form, field_id) {
var val = form.find("#"+field_id).attr("checked");
if (val)
var val = form.find("#"+field_id+":checked");
if (val.length)
return 1
return 0
}
Expand Down

0 comments on commit 8f5aec6

Please sign in to comment.