Multilinguified Copy button prompt.

This commit is contained in:
Nate Jones
2013-05-30 00:41:30 +00:00
parent 0c92a9691e
commit 29ad53b019
2 changed files with 4 additions and 1 deletions

View File

@@ -305,6 +305,9 @@
$text['message-copy']['en-us'] = 'Copy Completed';
$text['message-copy']['pt-pt'] = '';
$text['message_extension']['en-us'] = '# Enter the new Extension to use...';
$text['message_extension']['pt-pt'] = '';
$text['message-required']['en-us'] = 'Please provide: ';
$text['message-required']['pt-pt'] = '';

View File

@@ -710,7 +710,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<td width='70%' align='right' valign='top'>\n";
echo " <input type='submit' class='btn' name='submit' value='".$text['button-save']."'>\n";
if ($action != "add") {
echo " <input type='button' class='btn' name='' alt='".$text['button-copy']."' onclick=\"var new_ext = prompt('Enter the new Extension to use...'); if (new_ext != null) { window.location='extension_copy.php?id=".$extension_uuid."&ext=' + new_ext; }\" value='".$text['button-copy']."'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-copy']."' onclick=\"var new_ext = prompt('".$text['message_extension']."'); if (new_ext != null) { window.location='extension_copy.php?id=".$extension_uuid."&ext=' + new_ext; }\" value='".$text['button-copy']."'>\n";
}
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='extensions.php'\" value='".$text['button-back']."'>\n";
echo " <br /><br />\n";