Added tips to large tags in module config
This commit is contained in:
parent
31a8fd6c55
commit
36287188b4
|
@ -1357,12 +1357,11 @@ $(document).ready (function () {
|
|||
jQuery.each($("select[name='id_tag_available[]'] option:selected"), function (key, value) {
|
||||
tag_name = $(value).html();
|
||||
if (tag_name != <?php echo "'".__('None')."'"; ?>) {
|
||||
id_tag = $(value).attr('value');
|
||||
$("select[name='id_tag_selected[]']").append($("<option></option>").val(id_tag).html('<i>' + tag_name + '</i>'));
|
||||
$("select[name='id_tag_selected[]']").append(value);
|
||||
$("#id_tag_available").find("option[value='" + id_tag + "']").remove();
|
||||
$("#id_tag_selected").find("option[value='']").remove();
|
||||
if($("#id_tag_available option").length == 0) {
|
||||
$("select[name='id_tag_available[]']").append($("<option></option>").val('').html('<i><?php echo __('None'); ?></i>'));
|
||||
$("select[name='id_tag_available[]']").append(value);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1373,11 +1372,11 @@ $(document).ready (function () {
|
|||
tag_name = $(value).html();
|
||||
if (tag_name != <?php echo "'".__('None')."'"; ?>) {
|
||||
id_tag = $(value).attr('value');
|
||||
$("select[name='id_tag_available[]']").append($("<option>").val(id_tag).html('<i>' + tag_name + '</i>'));
|
||||
$("select[name='id_tag_available[]']").append(value);
|
||||
$("#id_tag_selected").find("option[value='" + id_tag + "']").remove();
|
||||
$("#id_tag_available").find("option[value='']").remove();
|
||||
if($("#id_tag_selected option").length == 0) {
|
||||
$("select[name='id_tag_selected[]']").append($("<option></option>").val('').html('<i><?php echo __('None'); ?></i>'));
|
||||
$("select[name='id_tag_selected[]']").append(value);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -717,7 +717,8 @@ function html_print_select(
|
|||
$message='',
|
||||
$select_all=false,
|
||||
$simple_multiple_options=false,
|
||||
$required=false
|
||||
$required=false,
|
||||
$truncate_size=false
|
||||
) {
|
||||
$output = "\n";
|
||||
|
||||
|
@ -853,6 +854,18 @@ function html_print_select(
|
|||
$output .= ' style="'.$option_style[$value].'"';
|
||||
}
|
||||
|
||||
if ($truncate_size !== false) {
|
||||
$output .= ' Title="'.$optlabel.'"';
|
||||
|
||||
$optlabel = ui_print_truncate_text(
|
||||
$optlabel,
|
||||
$truncate_size,
|
||||
false,
|
||||
true,
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
if ($optlabel === '') {
|
||||
$output .= '>None</option>';
|
||||
} else {
|
||||
|
@ -1475,7 +1488,7 @@ function html_print_select_from_sql(
|
|||
$disabled=false,
|
||||
$style=false,
|
||||
$size=false,
|
||||
$trucate_size=GENERIC_SIZE_TEXT,
|
||||
$truncate_size=GENERIC_SIZE_TEXT,
|
||||
$class='',
|
||||
$required=false
|
||||
) {
|
||||
|
@ -1490,13 +1503,7 @@ function html_print_select_from_sql(
|
|||
foreach ($result as $row) {
|
||||
$id = array_shift($row);
|
||||
$value = array_shift($row);
|
||||
$fields[$id] = ui_print_truncate_text(
|
||||
$value,
|
||||
$trucate_size,
|
||||
false,
|
||||
true,
|
||||
false
|
||||
);
|
||||
$fields[$id] = $value;
|
||||
}
|
||||
|
||||
return html_print_select(
|
||||
|
@ -1523,7 +1530,8 @@ function html_print_select_from_sql(
|
|||
// Simple_multiple_options.
|
||||
false,
|
||||
// Required.
|
||||
$required
|
||||
$required,
|
||||
$truncate_size
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue