adt-js-components 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/AjaxSelect/index.js
CHANGED
|
@@ -62,6 +62,7 @@ function run(options) {
|
|
|
62
62
|
};
|
|
63
63
|
},
|
|
64
64
|
language: this.customOptions.language,
|
|
65
|
+
dropdownParent: this.customOptions.dropdownParent ? $(this.customOptions.dropdownParent) : document.body,
|
|
65
66
|
placeholder: this.options.prompt || undefined,
|
|
66
67
|
allowClear: this.options.prompt ? true : false,
|
|
67
68
|
minimumInputLength: this.customOptions.minimumInputLength,
|
package/src/SubmitForm/index.js
CHANGED
|
@@ -103,10 +103,15 @@ function run(options) {
|
|
|
103
103
|
|
|
104
104
|
// if there is no redirect, we will enable buttons
|
|
105
105
|
if (settings.nette && settings.nette.form && settings.nette.form.attr('data-adt-submit-form') !== undefined) {
|
|
106
|
-
|
|
107
|
-
settings.nette.
|
|
108
|
-
|
|
109
|
-
}
|
|
106
|
+
// the form or the entire page may be redrawn
|
|
107
|
+
if (settings.nette.el.data('originalContent')) {
|
|
108
|
+
settings.nette.el.html(settings.nette.el.data('originalContent'));
|
|
109
|
+
}
|
|
110
|
+
if (settings.nette.form.data('enabledButtons')) {
|
|
111
|
+
settings.nette.form.data('enabledButtons').each(function () {
|
|
112
|
+
$(this).prop('disabled', false);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
110
115
|
}
|
|
111
116
|
},
|
|
112
117
|
error: function (xhr, status, error, settings) {
|