WebUI: suppress truncation warning in select widget

This widget is used on details pages and dialogs. When the size limit
is set to lower number the warning about truncation was shown every time
the details page was open.

Now, with support for suppressing warning messages from server according
to its code, we are able to disable warning with 13017 code (truncation
warning)

https://pagure.io/freeipa/issue/6618

Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
Pavel Vomacka committed 2017-03-27 18:10:04 +02:00
1 parent 7b3a10da70
commit b9e6ad1967
1 file changed
+2 -1
+2 -1
View File
@@ -5012,7 +5012,8 @@ IPA.entity_select_widget = function(spec) {
entity: that.other_entity.name,
method: 'find',
args: [filter],
options: that.filter_options
options: that.filter_options,
suppress_warnings: [13017]
});
var no_members = metadata.get('@mc-opt:' + cmd.get_command() + ':no_members');
if (no_members) {