Lines Matching refs:form
71 this.$div = $(div); //div, containing form. Not form tag. Not editable-element.
77 template : '<form class="form-inline editableform">'+
82 '</form>',
99 //init form template and buttons
100 this.$form = $(this.template);
102 var $btn = this.$form.find('.editable-buttons');
105 this.$form.find('.editable-submit').button({
109 this.$form.find('.editable-cancel').button({
115 //append input to form
116 this.input = new TextInput(this.$form.find('div.editable-input'), {defaultValue: this.options.value});
118 //flag showing is form now saving value to server.
119 //It is needed to wait when closing form.
122 //append form to container
123 this.$div.append(this.$form);
125 this.$form.find('.editable-cancel').click($.proxy(this.cancel, this));
128 this.$form.submit($.proxy(this.submit, this));
130 //show form
135 Fired when form was cancelled by user
143 //set loading size equal to form
144 w = this.$form.outerWidth();
145 h = this.$form.outerHeight();
153 this.$form.hide();
160 this.$form.show();
165 Fired when form is shown
172 this.$form.find('.editable-error-block').removeClass('ui-state-error').empty().hide();
174 this.$form.find('.editable-error-block').addClass('ui-state-error').html(msg).show();
333 Shows container with form
371 //render form
372 this.form = new EditableForm(this.$form_container, {
382 Hides container with form
390 //if form is saving value, schedule hide
391 if(this.form.isSaving) {