Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion jquery.repeater.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,16 @@ var createInputURL = function (fig) {

return self;
};
var createInputColor = function (fig) {
var my = {},
self = createInputText(fig, my);

self.getType = function () {
return 'color';
};

return self;
};

var buildFormInputs = function (fig) {
var inputs = {},
Expand All @@ -540,6 +550,7 @@ var buildFormInputs = function (fig) {
button: createInputButton,
text: createInputText,
url: createInputURL,
color: createInputColor,
email: createInputEmail,
password: createInputPassword,
range: createInputRange,
Expand Down Expand Up @@ -612,6 +623,9 @@ var buildFormInputs = function (fig) {
else if($self.is('input[type="url"]')) {
addInputsBasic('url', $self);
}
else if($self.is('input[type="color"]')) {
addInputsBasic('color', $self);
}
else if($self.is('input[type="range"]')) {
addInputsBasic('range', $self);
}
Expand Down Expand Up @@ -651,6 +665,7 @@ var buildFormInputs = function (fig) {
addInputsBasic('password', 'input[type="password"]');
addInputsBasic('email', 'input[type="email"]');
addInputsBasic('url', 'input[type="url"]');
addInputsBasic('color', 'input[type="color"]');
addInputsBasic('range', 'input[type="range"]');
addInputsBasic('textarea', 'textarea');
addInputsBasic('select', 'select:not([multiple])');
Expand Down Expand Up @@ -1013,4 +1028,4 @@ $.fn.repeater = function (fig) {
return this;
};

}(jQuery));
}(jQuery));