WebUI: Coverity - add explicit window object to alert methods

All calls of alert were without explicit object. This commit
adds explicit object window.

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
Pavel Vomacka 2017-04-13 11:04:47 +02:00 committed by Martin Basti
parent 298f725e5b
commit b54ceae961
5 changed files with 10 additions and 10 deletions

View File

@ -116,7 +116,7 @@ IPA.serial_associator = function(spec) {
batch.add_command(command);
}
//alert(JSON.stringify(command.to_json()));
//window.alert(JSON.stringify(command.to_json()));
batch.execute();
};
@ -154,7 +154,7 @@ IPA.bulk_associator = function(spec) {
command.set_option(that.other_entity.name, that.values);
//alert(JSON.stringify(command.to_json()));
//window.alert(JSON.stringify(command.to_json()));
command.execute();
};
@ -731,7 +731,7 @@ IPA.association_table_widget = function (spec) {
if (!selected_values.length) {
var message = text.get('@i18n:dialogs.remove_empty');
alert(message);
window.alert(message);
return;
}
@ -1268,7 +1268,7 @@ exp.association_facet = IPA.association_facet = function (spec, no_init) {
if (!values.length) {
var message = text.get('@i18n:dialogs.remove_empty');
alert(message);
window.alert(message);
return;
}
@ -1579,7 +1579,7 @@ exp.attribute_facet = IPA.attribute_facet = function(spec, no_init) {
if (!selected_values.length) {
var message = text.get('@i18n:dialogs.remove_empty');
alert(message);
window.alert(message);
return;
}

View File

@ -1949,7 +1949,7 @@ IPA.dns.record_type_table_widget = function(spec) {
if (!selected_values.length) {
var message = text.get('@i18n:dialogs.remove_empty');
alert(message);
window.alert(message);
return;
}

View File

@ -213,7 +213,7 @@ IPA.search_facet = function(spec, no_init) {
var title;
if (!values.length) {
title = text.get('@i18n:dialogs.remove_empty');
alert(title);
window.alert(title);
return null;
}

View File

@ -860,7 +860,7 @@ IPA.sudo.options_section = function(spec) {
if (!values.length) {
var message = text.get('@i18n:dialogs.remove_empty');
alert(message);
window.alert(message);
return;
}
@ -952,4 +952,4 @@ exp.register = function() {
phases.on('registration', exp.register);
return exp;
});
});

View File

@ -4331,7 +4331,7 @@ IPA.attribute_table_widget = function(spec) {
if (!selected_values.length) {
var message = text.get('@i18n:dialogs.remove_empty');
alert(message);
window.alert(message);
return null;
}