Skip to content

Commit

Permalink
Adding form-class to every field
Browse files Browse the repository at this point in the history
  • Loading branch information
goinnn committed Aug 30, 2015
1 parent 8008d61 commit 544b43c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Releases
------------------

* Add Tooltip on Mouseover
* Add form-class to the fields
* Improvements in the testing project
* Support to Django 1.7 and Django 1.8
* Support to the last versions of the django-bootstrap3-datetimepicker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,13 @@
self.inplaceeditfields.removeAttr("data-toggle");
self.inplaceeditfields.removeAttr("title");
},
transformField: function (tags) {
var self = $.inplaceeditform;
var height = $(tags).find(self.opts.fieldTypes).height();
$(tags).find(self.opts.fieldTypes).addClass("form-control");
if (height > 0) {
$(tags).find(self.opts.fieldTypes).height(height + 10);
}
}
});
})(jQuery);

0 comments on commit 544b43c

Please sign in to comment.