Commit 9571dd5b authored by David HAN SZE CHUEN's avatar David HAN SZE CHUEN

Create the `title` attributes from data

parent 99e60230
...@@ -1011,6 +1011,7 @@ ...@@ -1011,6 +1011,7 @@
tag.append($('<option/>').attr({ tag.append($('<option/>').attr({
value: subOption.value, value: subOption.value,
label: subOption.label || subOption.value, label: subOption.label || subOption.value,
title: subOption.caption,
selected: !!subOption.selected selected: !!subOption.selected
})); }));
}); });
...@@ -1021,6 +1022,7 @@ ...@@ -1021,6 +1022,7 @@
tag = $('<option/>').attr({ tag = $('<option/>').attr({
value: option.value, value: option.value,
label: option.label || option.value, label: option.label || option.value,
title: option.caption,
selected: !!option.selected selected: !!option.selected
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment