1
0
Fork 0

added SELECT2 entry for modal view

This commit is contained in:
gschwab 2014-04-07 09:14:03 +02:00
parent fb3eab315d
commit ed30df6c17
1 changed files with 13 additions and 0 deletions

View File

@ -50,6 +50,7 @@
TEXT: "text",
PASSWORD: "password",
SELECT: "select",
SELECT2: "select2",
CHECKBOX: "checkbox"
},
closeButton: {
@ -105,6 +106,18 @@
return obj;
},
createSelect2Entry: function(id, label, value, info, placeholder, mandatory) {
var obj = createTextStub(this.tables.SELECT2, label, value, info);
obj.id = id;
if (placeholder) {
obj.placeholder = placeholder;
}
if (mandatory) {
obj.mandatory = mandatory;
}
return obj;
},
createPasswordEntry: function(id, label, value, info, placeholder, mandatory) {
var obj = createTextStub(this.tables.PASSWORD, label, value, info);
obj.id = id;