delete to remove THe keyword delete is reserved in Javascript Using it breaks the WebUI on Chrome. This fixes replaces the word with delete.

This commit is contained in:
Adam Young 2010-11-08 20:39:40 -05:00 committed by Endi Sukma Dewata
parent cb739c10d0
commit 1f9531bea2
4 changed files with 6 additions and 6 deletions

View File

@ -264,7 +264,7 @@ function ipa_association_widget(spec) {
$('<input/>', {
'type': 'button',
'name': 'remove',
'value': IPA.messages.button.delete
'value': IPA.messages.button.remove
}).appendTo(buttons);
$('<input/>', {

View File

@ -179,7 +179,7 @@ function ipa_records_facet(spec){
var delete_dialog = $('<div/>', {
title: IPA.messages.button.delete
title: IPA.messages.button.remove
});
var to_delete_table =
$('<table class="search-table" >'+
@ -302,7 +302,7 @@ function ipa_records_facet(spec){
}).appendTo(control_span);
ipa_button({
'label': IPA.messages.button.delete,
'label': IPA.messages.button.remove,
'icon': 'ui-icon-trash',
'click': function(){delete_records(records_table);}
}).appendTo(control_span);

View File

@ -144,7 +144,7 @@ function search_create(entity_name, columns, container) {
function delete_on_click_outer() {
var delete_list = [];
var delete_dialog = $('<div></div>', {
title: IPA.messages.button.delete
title: IPA.messages.button.remove
});
function delete_on_click() {
@ -213,7 +213,7 @@ function search_create(entity_name, columns, container) {
}).appendTo(search_filter);
ipa_button({
'label': IPA.messages.button.delete,
'label': IPA.messages.button.remove,
'icon': 'ui-icon-trash',
'click': delete_on_click_outer
}).appendTo(search_filter);

View File

@ -43,7 +43,7 @@ class json_metadata(Command):
"reset":_("Reset"),
"update":_("Update"),
"enroll":_("Enroll"),
"delete":_("Delete"),
"remove":_("Delete"),
},
"search":{
"quick_links":_("Quick Links"),