Revision cdee2c8f

View differences:

src/sunstone/public/js/sunstone.js
8175 8175
    @param opts.tooltip 
8176 8176
    @param opts.options array of options for the select
8177 8177
    @param opts.custom boolean, provide a text input for a custom value (default: false)
8178
    @param opts.no_empty_option do not provide an empty option
8178 8179
    @return {string}
8179 8180
*/
8180 8181
function generateValueSelect(opts){
......
8190 8191
    str += '<div class="custom_select_div large-12 columns">'+ 
8191 8192
            '<select name="' + opts.id + '_select" class="custom_select">';
8192 8193

  
8193
    str += '<option id="" name="" value=""></option>';
8194
    if (!opts.no_empty_option) {
8195
        str += '<option id="" name="" value=""></option>';
8196
    }
8194 8197

  
8195 8198
    $.each(opts.options, function(index, option){
8196 8199
        str += '<option value="' + option + '">' + option + '</option>';

Also available in: Unified diff