ros.grant.common 2.0.1430 → 2.0.1432
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.
|
@@ -194,7 +194,7 @@ class CustomSelectInitializer {
|
|
|
194
194
|
// Установка selectedIndex кастомного селекта в нужное значение
|
|
195
195
|
public static SetSelectedIndex(element: HTMLElement, value: number) {
|
|
196
196
|
|
|
197
|
-
$(element).find('.selected').removeClass('selected');
|
|
197
|
+
$($(element).parent('.select')).find('.selected').removeClass('selected');
|
|
198
198
|
$(element).attr('selected-val', ($('option', $(element))[value] as any).value);
|
|
199
199
|
|
|
200
200
|
(element as any).selectedIndex = value;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Параметры настройки кнопок в футере модального окна
|
|
3
3
|
*/
|
|
4
|
-
interface IButton {
|
|
4
|
+
interface IButton {
|
|
5
5
|
text: string,
|
|
6
6
|
class: string,
|
|
7
7
|
disabled?: boolean;
|
|
@@ -18,6 +18,8 @@ interface IModalSettings {
|
|
|
18
18
|
title?: string,
|
|
19
19
|
titleLowercase?: boolean,
|
|
20
20
|
subTitle?: string,
|
|
21
|
+
content?: string,
|
|
22
|
+
contentClasses?: string,
|
|
21
23
|
buttons: IButton[],
|
|
22
24
|
addCancelButton?: boolean,
|
|
23
25
|
closeClick?: () => void,
|
|
@@ -131,6 +133,19 @@ class Modal {
|
|
|
131
133
|
}
|
|
132
134
|
subTitleElem.html(settings.subTitle);
|
|
133
135
|
}
|
|
136
|
+
|
|
137
|
+
if (settings.content) {
|
|
138
|
+
var bodyElem = modal.find(".modal-body");
|
|
139
|
+
|
|
140
|
+
if (bodyElem) {
|
|
141
|
+
bodyElem.html(settings.content)
|
|
142
|
+
bodyElem.css( "display", "block" );
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (settings.contentClasses && bodyElem) {
|
|
146
|
+
bodyElem.addClass(settings.contentClasses)
|
|
147
|
+
}
|
|
148
|
+
}
|
|
134
149
|
|
|
135
150
|
if (settings.color) {
|
|
136
151
|
let values: string = Object.keys(ModalTitleColors)
|
package/package.json
CHANGED