Lines 33-39
function clear_form(){
Link Here
|
33 |
function add_provider(){ |
33 |
function add_provider(){ |
34 |
clear_form(); |
34 |
clear_form(); |
35 |
$(".dialog").hide(); |
35 |
$(".dialog").hide(); |
36 |
$("legend").text( LABEL_SMS_ADD_PROVIDER ); |
36 |
$("legend").text( __("Add an SMS cellular provider") ); |
37 |
$("#toolbar,#submit_update,#providerst").hide(); |
37 |
$("#toolbar,#submit_update,#providerst").hide(); |
38 |
$("#sms_add_form,#submit_save").show(); |
38 |
$("#sms_add_form,#submit_save").show(); |
39 |
$("#name").focus(); |
39 |
$("#name").focus(); |
Lines 41-47
function add_provider(){
Link Here
|
41 |
|
41 |
|
42 |
function edit_provider( id ) { |
42 |
function edit_provider( id ) { |
43 |
clear_form(); |
43 |
clear_form(); |
44 |
$("legend").text( LABEL_SMS_EDIT_PROVIDER.format( $("#name_" + id).text() ) ); |
44 |
$("legend").text( __("Edit provider %s").format($("#name_" + id).text()) ); |
45 |
$("#sms_add_form,#submit_update").show(); |
45 |
$("#sms_add_form,#submit_update").show(); |
46 |
|
46 |
|
47 |
$("#id").val( id ); |
47 |
$("#id").val( id ); |
Lines 64-72
function cancel_edit() {
Link Here
|
64 |
function delete_provider( id, users ) { |
64 |
function delete_provider( id, users ) { |
65 |
var c; |
65 |
var c; |
66 |
if ( users ) { |
66 |
if ( users ) { |
67 |
c = confirm( MSG_SMS_PATRONS_USING.format( $("#name_" + id).html(), users ) ); |
67 |
c = confirm( __("Are you sure you want to delete %s? %s patron(s) are using it!").format($("#name_" + id).html(), users) ); |
68 |
} else { |
68 |
} else { |
69 |
c = confirm( MSG_SMS_DELETE_CONFIRM.format( $("#name_" + id).html() ) ); |
69 |
c = confirm( __("Are you sure you want to delete %s?").format($("#name_" + id).html()) ); |
70 |
} |
70 |
} |
71 |
|
71 |
|
72 |
if ( c ) { |
72 |
if ( c ) { |
73 |
- |
|
|