Skip to content

Commit 9a1ad0f

Browse files
Andrew Telnov (DevExpress)Andrew Telnov (DevExpress)
authored andcommitted
make some unneeded properties invisible
1 parent de0597f commit 9a1ad0f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/jquery-bar-rating.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ function init(Survey) {
88
isFit : function(question) { return question.getType() === 'barrating'; },
99
isDefaultRender: true,
1010
activatedByChanged: function(activatedBy) {
11-
Survey.JsonObject.metaData.addClass("barrating", [ {name: "showValues", default: false}, {name:"hasOther", visible: false}], null, "dropdown");
11+
Survey.JsonObject.metaData.addClass("barrating", [ {name: "showValues:boolean", default: false},
12+
{name:"hasOther", visible: false}, {name: "otherText", visible: false}, {name: "optionsCaption", visible: false},
13+
{name: "otherErrorText", visible: false}, {name: "storeOthersAsComment", visible: false}, {name: "renderAs", visible: false}], null, "dropdown");
1214
Survey.JsonObject.metaData.addProperty("barrating", {name: "ratingTheme", default: "fontawesome-stars", choices: ["fontawesome-stars", "css-stars", "bars-pill", "bars-1to10", "bars-movie", "bars-square", "bars-reversed", "bars-horizontal", "bootstrap-stars", "fontawesome-stars-o"]});
1315
},
1416
afterRender: function(question, el) {

src/jquery-ui-datepicker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ function init(Survey) {
88
htmlTemplate: "<input class='widget-datepicker' type='text' style='width: 100%;'>",
99
activatedByChanged: function(activatedBy) {
1010
Survey.JsonObject.metaData.addClass("datepicker",
11-
[{name: "dateFormat", default: "mm/dd/yy", choices: ["mm/dd/yy", "yy-mm-dd", "d M, y", "d MM, y", "DD, d MM, yy", "'day' d 'of' MM 'in the year' yy"]}],
12-
null, "text");
11+
[{name: "dateFormat", default: "mm/dd/yy", choices: ["mm/dd/yy", "yy-mm-dd", "d M, y", "d MM, y", "DD, d MM, yy", "'day' d 'of' MM 'in the year' yy"]},
12+
{name:"inputType", visible: false}, {name:"inputFormat", visible: false}, {name: "inputMask", visible: false}], null, "text");
1313
},
1414
afterRender: function(question, el) {
1515
var $el = $(el).is(".widget-datepicker") ? $(el) : $(el).find(".widget-datepicker");

src/sortablejs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function init(Survey) {
1010
isFit : function(question) { return question.getType() === 'sortablelist'; },
1111
htmlTemplate: "<div></div>",
1212
activatedByChanged: function(activatedBy) {
13-
Survey.JsonObject.metaData.addClass("sortablelist", [{name:"hasOther", visible: false}], null, "checkbox");
13+
Survey.JsonObject.metaData.addClass("sortablelist", [{name:"hasOther", visible: false}, {name:"storeOthersAsComment", visible: false}], null, "checkbox");
1414
Survey.JsonObject.metaData.addProperty("sortablelist", {name: "emptyText", default: "Move items here."});
1515
},
1616
afterRender: function(question, el) {

0 commit comments

Comments
 (0)