Fixing select2 placeholders and reactivity issues

This commit is contained in:
Bruno Alves de Faria 2017-04-19 10:07:48 -03:00
parent 2e5f6299cc
commit 98c052c4b7
3 changed files with 7 additions and 9 deletions

View File

@ -98,7 +98,7 @@ OHIF.mixins.select2 = new OHIF.Mixin({
const currentValue = component.value();
Tracker.afterFlush(() => {
rebuildSelect2();
component.value(currentValue);
component.$element.val(currentValue);
});
} else {
rebuildSelect2();

View File

@ -7,11 +7,9 @@
this.wrappers
)
options=(clone this.options
multiple=(valueIf this.multiple true false)
placeholder=this.placeholder
minimumResultsForSearch=(valueIf this.hideSearch
-1 this.minimumResultsForSearch
)
multiple=(choose this.options.multiple this.multiple false)
placeholder=(choose this.options.placeholder this.placeholder)
minimumResultsForSearch=(valueIf this.hideSearch -1 this.options.minimumResultsForSearch)
)
)}}
{{>UI.contentBlock}}

View File

@ -55,8 +55,8 @@ export const DICOMWebServer = new SimpleSchema({
imageRendering: {
type: String,
label: 'Image rendering',
allowedValues: ['', 'wadouri', 'orthanc'],
valuesLabels: ['', 'WADO URI', 'ORTHANC']
allowedValues: ['wadouri', 'orthanc'],
valuesLabels: ['WADO URI', 'ORTHANC']
},
qidoRoot: {
type: String,
@ -163,7 +163,7 @@ export const UISettings = new SimpleSchema({
type: Number,
label: 'Number of days to be used on Study List date filter',
min: 1
}
}
});
export const PrefetchSchema = new SimpleSchema({