|
1 |
| -/*! JSON Editor v0.7.7 - JSON Schema -> HTML Editor |
| 1 | +/*! JSON Editor v0.7.8 - JSON Schema -> HTML Editor |
2 | 2 | * By Jeremy Dorn - https://github.com/jdorn/json-editor/
|
3 | 3 | * Released under the MIT license
|
4 | 4 | *
|
5 |
| - * Date: 2014-08-21 |
| 5 | + * Date: 2014-08-28 |
6 | 6 | */
|
7 | 7 |
|
8 | 8 | /**
|
@@ -1863,7 +1863,7 @@ JSONEditor.defaults.editors.string = JSONEditor.AbstractEditor.extend({
|
1863 | 1863 | if(this.enumSource[i].title) {
|
1864 | 1864 | this.enumSource[i].title = this.jsoneditor.compileTemplate(this.enumSource[i].title, this.template_engine);
|
1865 | 1865 | }
|
1866 |
| - if(this.enumSource[i].fillter) { |
| 1866 | + if(this.enumSource[i].filter) { |
1867 | 1867 | this.enumSource[i].filter = this.jsoneditor.compileTemplate(this.enumSource[i].filter, this.template_engine);
|
1868 | 1868 | }
|
1869 | 1869 | }
|
@@ -2053,7 +2053,7 @@ JSONEditor.defaults.editors.string = JSONEditor.AbstractEditor.extend({
|
2053 | 2053 | emoticonsEnabled: false,
|
2054 | 2054 | width: '100%',
|
2055 | 2055 | height: 300
|
2056 |
| - },JSONEditor.plugins.sceditor); |
| 2056 | + },JSONEditor.plugins.sceditor,self.options.sceditor_options||{}); |
2057 | 2057 |
|
2058 | 2058 | window.jQuery(self.input).sceditor(options);
|
2059 | 2059 |
|
@@ -4615,7 +4615,7 @@ JSONEditor.defaults.editors.enum = JSONEditor.AbstractEditor.extend({
|
4615 | 4615 | return 4;
|
4616 | 4616 | },
|
4617 | 4617 | build: function() {
|
4618 |
| - var container = this.getContainer(); |
| 4618 | + var container = this.container; |
4619 | 4619 | this.title = this.header = this.label = this.theme.getFormInputLabel(this.getTitle());
|
4620 | 4620 | this.container.appendChild(this.title);
|
4621 | 4621 |
|
@@ -4645,6 +4645,8 @@ JSONEditor.defaults.editors.enum = JSONEditor.AbstractEditor.extend({
|
4645 | 4645 | this.display_area.style.paddingTop = 0;
|
4646 | 4646 | this.display_area.style.paddingBottom = 0;
|
4647 | 4647 | this.container.appendChild(this.display_area);
|
| 4648 | + |
| 4649 | + if(this.options.hide_display) this.display_area.style.display = "none"; |
4648 | 4650 |
|
4649 | 4651 | this.switcher.addEventListener('change',function() {
|
4650 | 4652 | self.selected = self.select_options.indexOf(this.value);
|
|
0 commit comments