src/rails_admin/remote-form.js
Function _bindFormEvents
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_bindFormEvents: function () {
var widget = this,
dialog = this._getModal(),
form = dialog.find("form"),
saveButtonText = dialog.find(":submit[name=_save]").html(),
Function _create
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function () {
var widget = this;
var dom_widget = widget.element;
var edit_url =
Function _getModal
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getModal: function () {
var widget = this;
if (!widget.dialog) {
widget.dialog = $(
'<div id="modal" class="modal fade">\