mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
298f725e5b
commit
b54ceae961
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
});
|
||||
});
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user