mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update to Bootstrap v4.3.1, jQuery 3.4.1. Adjustments to support updates.
This commit is contained in:
@@ -346,7 +346,7 @@
|
||||
}
|
||||
else {
|
||||
$('#destination_'+ext+'_call').show(0, function() {
|
||||
$('#destination_'+ext+'_call').focus();
|
||||
$('#destination_'+ext+'_call').trigger('focus');
|
||||
$('#destination_'+ext+'_call').autocomplete({
|
||||
source: "autocomplete.php",
|
||||
minLength: 3,
|
||||
@@ -374,7 +374,7 @@
|
||||
else {
|
||||
$('#op_caller_details_'+ext).hide(0, function() {
|
||||
$('#destination_'+ext+'_transfer').show(0, function() {
|
||||
$('#destination_'+ext+'_transfer').focus();
|
||||
$('#destination_'+ext+'_transfer').trigger('focus');
|
||||
$('#destination_'+ext+'_transfer').autocomplete({
|
||||
source: "autocomplete.php",
|
||||
minLength: 3,
|
||||
|
||||
@@ -216,7 +216,7 @@ else {
|
||||
echo " document.getElementById(field).selectedIndex = 0;";
|
||||
echo " document.getElementById(field+'_custom').value = '';";
|
||||
echo " $('#'+field+'_custom').toggle();";
|
||||
echo " if ($('#'+field+'_custom').is(':visible')) { $('#'+field+'_custom').focus(); } else { $('#'+field).focus(); }";
|
||||
echo " if ($('#'+field+'_custom').is(':visible')) { $('#'+field+'_custom').trigger('focus'); } else { $('#'+field).trigger('focus'); }";
|
||||
echo " }";
|
||||
echo "</script>";
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ if (is_uuid($_GET["contact_uuid"])) {
|
||||
echo " document.getElementById(field).selectedIndex = 0;";
|
||||
echo " document.getElementById(field+'_custom').value = '';";
|
||||
echo " $('#'+field+'_custom').toggle();";
|
||||
echo " if ($('#'+field+'_custom').is(':visible')) { $('#'+field+'_custom').focus(); } else { $('#'+field).focus(); }";
|
||||
echo " if ($('#'+field+'_custom').is(':visible')) { $('#'+field+'_custom').trigger('focus'); } else { $('#'+field).trigger('focus'); }";
|
||||
echo " }";
|
||||
echo "</script>";
|
||||
|
||||
|
||||
@@ -218,7 +218,7 @@
|
||||
echo " document.getElementById(field).selectedIndex = 0;\n";
|
||||
echo " document.getElementById(field+'_custom').value = '';\n";
|
||||
echo " $('#'+field+'_custom').toggle();\n";
|
||||
echo " if ($('#'+field+'_custom').is(':visible')) { $('#'+field+'_custom').focus(); } else { $('#'+field).focus(); }\n";
|
||||
echo " if ($('#'+field+'_custom').is(':visible')) { $('#'+field+'_custom').trigger('focus'); } else { $('#'+field).trigger('focus'); }\n";
|
||||
echo " }";
|
||||
echo "</script>";
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ else {
|
||||
echo " document.getElementById(field).selectedIndex = 0;";
|
||||
echo " document.getElementById(field+'_custom').value = '';";
|
||||
echo " $('#'+field+'_custom').toggle();";
|
||||
echo " if ($('#'+field+'_custom').is(':visible')) { $('#'+field+'_custom').focus(); } else { $('#'+field).focus(); }";
|
||||
echo " if ($('#'+field+'_custom').is(':visible')) { $('#'+field+'_custom').trigger('focus'); } else { $('#'+field).trigger('focus'); }";
|
||||
echo " }";
|
||||
echo "</script>";
|
||||
|
||||
|
||||
@@ -132,9 +132,18 @@ if (!permission_exists('contact_time_add')) { echo "access denied"; exit; }
|
||||
if ($contact_organization != '') {
|
||||
$contact .= ($contact != '') ? ', '.$contact_organization : $contact_organization;
|
||||
}
|
||||
?>
|
||||
|
||||
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
|
||||
//get the browser version
|
||||
$user_agent = http_user_agent();
|
||||
$browser_version = $user_agent['version'];
|
||||
$browser_name = $user_agent['name'];
|
||||
$browser_version_array = explode('.', $browser_version);
|
||||
|
||||
//set the doctype
|
||||
echo ($browser_name != "Internet Explorer") ? "<!DOCTYPE html>\n" : "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
|
||||
|
||||
?>
|
||||
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
|
||||
<head>
|
||||
<title><?php echo $text['label-time_timer']; ?>: <?php echo $contact; ?></title>
|
||||
<style>
|
||||
@@ -287,7 +296,8 @@ if (!permission_exists('contact_time_add')) { echo "access denied"; exit; }
|
||||
|
||||
</style>
|
||||
|
||||
<script language="JavaScript" type="text/javascript" src="<?php echo PROJECT_PATH; ?>/resources/jquery/jquery-1.12.4.js"></script>
|
||||
<script language='JavaScript' type='text/javascript' src='<?php echo PROJECT_PATH; ?>/resources/jquery/jquery-3.4.1.min.js'></script>
|
||||
<script src='https://code.jquery.com/jquery-migrate-3.1.0.js'></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
//ajax for refresh
|
||||
@@ -331,10 +341,9 @@ if (!permission_exists('contact_time_add')) { echo "access denied"; exit; }
|
||||
<input type='hidden' name='time_action' value="<?php echo escape($timer_action); ?>">
|
||||
<table cellpadding='0' cellspacing='0' border='0' style='width: 100%;'>
|
||||
<tr>
|
||||
<td class='vncell' style='text-align: center; padding: 10px;'>
|
||||
<?php echo $text['label-description']; ?>
|
||||
<textarea name='time_description' id='timer_description' class='formfld' style='width: 100%; height: 50px; margin-top: 5px;'><?php echo escape($time_description); ?></textarea>
|
||||
<? if ($timer_state == 'stopped') { ?><script>document.getElementById('timer_description').focus();</script><? } ?>
|
||||
<td class='vncell' style='text-align: center; border: none; padding: 0 !important; padding-top: 10px !important;'>
|
||||
<?php echo $text['label-description']; ?><br>
|
||||
<textarea name='time_description' id='timer_description' class='formfld' style='width: calc(100% - 30px); height: 50px; margin: 5px 10px 10px;'><?php echo escape($time_description); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -347,5 +356,6 @@ if (!permission_exists('contact_time_add')) { echo "access denied"; exit; }
|
||||
<?php } ?>
|
||||
</center>
|
||||
</form>
|
||||
<?php if ($timer_state == 'stopped') { ?><script>$('#timer_description').trigger('focus');</script><?php } ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -189,7 +189,7 @@ else {
|
||||
echo " document.getElementById(field).selectedIndex = 0;";
|
||||
echo " document.getElementById(field+'_custom').value = '';";
|
||||
echo " $('#'+field+'_custom').toggle();";
|
||||
echo " if ($('#'+field+'_custom').is(':visible')) { $('#'+field+'_custom').focus(); } else { $('#'+field).focus(); }";
|
||||
echo " if ($('#'+field+'_custom').is(':visible')) { $('#'+field+'_custom').trigger('focus'); } else { $('#'+field).trigger('focus'); }";
|
||||
echo " }";
|
||||
echo "</script>";
|
||||
|
||||
|
||||
@@ -604,7 +604,7 @@
|
||||
|
||||
echo "\n";
|
||||
echo " $( document ).ready(function() {\n";
|
||||
echo " $('#default_setting_search').focus();\n";
|
||||
echo " $('#default_setting_search').trigger('focus');\n";
|
||||
if ($search == '') {
|
||||
echo " // scroll to previous category\n";
|
||||
echo " var category_span_id;\n";
|
||||
@@ -1603,7 +1603,7 @@
|
||||
echo " if (event.which == 13) { submit_form(); }\n";
|
||||
echo " });\n";
|
||||
// capture device selection events
|
||||
echo " $('#device_profile_uuid').change(function(event){ \n";
|
||||
echo " $('#device_profile_uuid').on('change',function(event){ \n";
|
||||
echo " if (this.value == '') {\$('#device_profile_edit').hide()} else {\$('#device_profile_edit').show()} \n";
|
||||
echo " }); \n";
|
||||
// convert password fields to
|
||||
|
||||
@@ -136,7 +136,8 @@ echo "}\n";
|
||||
echo "</script>";
|
||||
|
||||
// keyboard shortcut bindings
|
||||
echo "<script language='JavaScript' type='text/javascript' src='".PROJECT_PATH."/resources/jquery/jquery-1.12.4.js'></script>\n";
|
||||
echo "<script language='JavaScript' type='text/javascript' src='".PROJECT_PATH."/resources/jquery/jquery-3.4.1.min.js'></script>\n";
|
||||
echo "<script src='https://code.jquery.com/jquery-migrate-3.1.0.js'></script>\n";
|
||||
|
||||
//save file
|
||||
key_press('ctrl+s', 'down', 'window', null, null, "if (parent.document.getElementById('frm_edit')) { parent.$('form#frm_edit').submit(); return false; }", true);
|
||||
|
||||
@@ -237,7 +237,8 @@ echo "}\n";
|
||||
echo "</SCRIPT>";
|
||||
|
||||
// keyboard shortcut bindings
|
||||
echo "<script language='JavaScript' type='text/javascript' src='".PROJECT_PATH."/resources/jquery/jquery-1.12.4.js'></script>\n";
|
||||
echo "<script language='JavaScript' type='text/javascript' src='".PROJECT_PATH."/resources/jquery/jquery-3.4.1.min.js'></script>\n";
|
||||
echo "<script src='https://code.jquery.com/jquery-migrate-3.1.0.js'></script>\n";
|
||||
|
||||
//save file
|
||||
key_press('ctrl+s', 'down', 'window', null, null, "parent.$('form#frm_edit').submit(); return false;", true);
|
||||
|
||||
@@ -97,7 +97,8 @@
|
||||
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
|
||||
<title><?php echo $title; ?></title>
|
||||
<link rel="icon" type="image/x-icon" href="<?php echo $favicon; ?>">
|
||||
<script language="JavaScript" type="text/javascript" src="<?php echo PROJECT_PATH; ?>/resources/jquery/jquery-1.12.4.js"></script>
|
||||
<script language="JavaScript" type="text/javascript" src="<?php echo PROJECT_PATH; ?>/resources/jquery/jquery-3.4.1.min.js"></script>
|
||||
<script src='https://code.jquery.com/jquery-migrate-3.1.0.js'></script>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function submit_check() {
|
||||
if (document.getElementById('filepath').value != '') {
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
echo " ".$text['description-emails'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='50%' align='right' valign='top'>\n";
|
||||
echo " <input type='button' class='btn' id='test_button' alt=\"".$text['button-test']."\" onclick=\"$(this).fadeOut(400, function(){ $('span#test_form').fadeIn(400); $('#to').focus(); });\" value='".$text['button-test']."'>\n";
|
||||
echo " <input type='button' class='btn' id='test_button' alt=\"".$text['button-test']."\" onclick=\"$(this).fadeOut(400, function(){ $('span#test_form').fadeIn(400); $('#to').trigger('focus'); });\" value='".$text['button-test']."'>\n";
|
||||
echo " <span id='test_form' style='display: none;'>\n";
|
||||
echo " <input type='text' class='formfld' style='min-width: 150px; width:150px; max-width: 150px;' name='to' id='to' placeholder='recipient@domain.com'>\n";
|
||||
echo " <input type='submit' class='btn' id='send_button' alt=\"".$text['button-send']."\" value='".$text['button-send']."'>\n";
|
||||
|
||||
@@ -860,7 +860,7 @@ if (!$included) {
|
||||
echo " document.getElementById('fax_recipient_select').selectedIndex = 0;";
|
||||
echo " $('#fax_recipient_select').toggle();";
|
||||
echo " $('#fax_recipient').toggle();";
|
||||
echo " if ($('#fax_recipient').is(':visible')) { $('#fax_recipient').focus(); } else { $('#fax_recipient_select').focus(); }";
|
||||
echo " if ($('#fax_recipient').is(':visible')) { $('#fax_recipient').trigger('focus'); } else { $('#fax_recipient_select').trigger('focus'); }";
|
||||
echo " }";
|
||||
echo " }";
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
echo " <td class='vncell'>".$text['label-message_from']."</td>\n";
|
||||
echo " <td class='vtable'>\n";
|
||||
if (is_array($destinations) && sizeof($destinations) != 0) {
|
||||
echo " <select class='formfld' name='message_from' id='message_new_from' onchange=\" $('#message_new_to').focus();\">\n";
|
||||
echo " <select class='formfld' name='message_from' id='message_new_from' onchange=\"$('#message_new_to').trigger('focus');\">\n";
|
||||
foreach ($destinations as $destination) {
|
||||
echo " <option value='".$destination."'>".format_phone($destination)."</option>\n";
|
||||
}
|
||||
@@ -261,7 +261,7 @@
|
||||
//note: the order of the above two lines matters!
|
||||
if (!http_user_agent('mobile')) {
|
||||
echo " if ($('#message_new_layer').is(':hidden')) {\n";
|
||||
echo " $('#message_text').focus();\n";
|
||||
echo " $('#message_text').trigger('focus');\n";
|
||||
echo " }\n";
|
||||
}
|
||||
echo " refresh_contacts();\n";
|
||||
@@ -286,7 +286,7 @@
|
||||
//note: the order of the above two lines matters!
|
||||
if (!http_user_agent('mobile')) {
|
||||
echo " if ($('#message_new_layer').is(':hidden')) {\n";
|
||||
echo " $('#message_text').focus();\n";
|
||||
echo " $('#message_text').trigger('focus');\n";
|
||||
echo " }\n";
|
||||
}
|
||||
echo " if (onsent != 'true') {\n";
|
||||
|
||||
@@ -294,7 +294,7 @@
|
||||
echo "</table>\n";
|
||||
echo "<table cellpadding='0' cellspacing='0' border='0' width='100%' style='margin-top: 15px;'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' width='50%'><input type='reset' class='btn' value='".$text['button-clear']."' onclick=\"$('#message_text').focus();\"></td>\n";
|
||||
echo " <td align='left' width='50%'><input type='reset' class='btn' value='".$text['button-clear']."' onclick=\"$('#message_text').trigger('focus');\"></td>\n";
|
||||
echo " <td align='center'><span id='thread_refresh_state'><img src='resources/images/refresh_active.gif' style='width: 16px; height: 16px; border: none; cursor: pointer;' onclick=\"refresh_thread_stop('".$number."','".$contact_uuid."');\" alt=\"".$text['label-refresh_pause']."\" title=\"".$text['label-refresh_pause']."\"></span></td>\n";
|
||||
echo " <td align='right' width='50%'><input type='submit' class='btn' value='".$text['button-send']."' title=\"".$text['label-ctrl_enter']."\"></td>\n";
|
||||
echo " </td>\n";
|
||||
@@ -317,7 +317,7 @@
|
||||
echo " document.getElementById('message_compose').reset();\n";
|
||||
if (!http_user_agent('mobile')) {
|
||||
echo " if ($('#message_new_layer').is(':hidden')) {\n";
|
||||
echo " $('#message_text').focus();\n";
|
||||
echo " $('#message_text').trigger('focus');\n";
|
||||
echo " }\n";
|
||||
}
|
||||
echo " refresh_thread('".$number."', '".$contact_uuid."', 'true');\n";
|
||||
|
||||
@@ -411,9 +411,9 @@
|
||||
|
||||
echo " </select>";
|
||||
|
||||
echo " <button type='button' id='btn_new' class='btn btn-default list_control_icon' style='margin-left: 3px;' onclick=\"name_mode('new');\"><span class='glyphicon glyphicon-plus'></span></button>";
|
||||
echo " <button type='button' id='btn_new' class='btn btn-default list_control_icon' style='margin-left: 3px;' onclick=\"name_mode('new');\"><span class='fas fa-plus'></span></button>";
|
||||
echo " <input class='formfld' style='width: 100px; display: none;' type='text' name='name_new' id='name_new' maxlength='255' value=''>";
|
||||
echo " <button type='button' id='btn_select' class='btn btn-default list_control_icon' style='display: none; margin-left: 3px;' onclick=\"name_mode('select');\"><span class='glyphicon glyphicon-list-alt'></span></button>";
|
||||
echo " <button type='button' id='btn_select' class='btn btn-default list_control_icon' style='display: none; margin-left: 3px;' onclick=\"name_mode('select');\"><span class='fas fa-list'></span></button>";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
@@ -511,29 +511,29 @@
|
||||
$stream_icons = array();
|
||||
$i = 0;
|
||||
if (permission_exists('music_on_hold_path')) {
|
||||
$stream_icons[$i]['glyphicon'] = 'glyphicon-folder-open';
|
||||
$stream_icons[$i]['icon'] = 'fa-folder-open';
|
||||
$stream_icons[$i]['title'] = $row['music_on_hold_name'];
|
||||
$i++;
|
||||
}
|
||||
if ($row['music_on_hold_shuffle'] == 'true') {
|
||||
$stream_icons[$i]['glyphicon'] = 'glyphicon-random';
|
||||
$stream_icons[$i]['icon'] = 'fa-random';
|
||||
$stream_icons[$i]['title'] = $text['label-shuffle'];
|
||||
$i++;
|
||||
}
|
||||
if ($row['music_on_hold_chime_list'] != '') {
|
||||
$stream_icons[$i]['glyphicon'] = 'glyphicon-bell';
|
||||
$stream_icons[$i]['icon'] = 'fa-bell';
|
||||
$stream_icons[$i]['title'] = $text['label-chime_list'].': '.$row['music_on_hold_chime_list'];
|
||||
$i++;
|
||||
}
|
||||
if ($row['music_on_hold_channels'] == '2') {
|
||||
$stream_icons[$i]['glyphicon'] = 'glyphicon-headphones';
|
||||
$stream_icons[$i]['icon'] = 'fa-headphones';
|
||||
$stream_icons[$i]['title'] = $text['label-stereo'];
|
||||
$stream_icons[$i]['margin'] = 6;
|
||||
$i++;
|
||||
}
|
||||
if (is_array($stream_icons) && sizeof($stream_icons) > 0) {
|
||||
foreach ($stream_icons as $stream_icon) {
|
||||
$icons .= "<span class='glyphicon ".$stream_icon['glyphicon']." icon_glyphicon_body' title='".escape($stream_icon['title'])."' style='width: 12px; height: 12px; margin-left: ".(($stream_icon['margin'] != '') ? $stream_icon['margin'] : 8)."px; vertical-align: text-top; cursor: help;'></span>";
|
||||
$icons .= "<span class='fas ".$stream_icon['icon']." icon_body' title='".escape($stream_icon['title'])."' style='width: 12px; height: 12px; margin-left: ".(($stream_icon['margin'] != '') ? $stream_icon['margin'] : 8)."px; vertical-align: text-top; cursor: help;'></span>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('.tr_hover tr').each(function(i,e) {
|
||||
$(e).children('td:not(.list_control_icon,.list_control_icons,.tr_checkbox)').click(function() {
|
||||
$(e).children('td:not(.list_control_icon,.list_control_icons,.tr_checkbox)').on('click',function() {
|
||||
$(this).closest('tr').children('td').css('font-weight','normal');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
echo " document.getElementById('caller_id_number').value = '';";
|
||||
echo " $('#caller_extension_uuid').toggle();";
|
||||
echo " $('#caller_id_number').toggle();";
|
||||
echo " if ($('#caller_id_number').is(':visible')) { $('#caller_id_number').focus(); } else { $('#caller_extension_uuid').focus(); }";
|
||||
echo " if ($('#caller_id_number').is(':visible')) { $('#caller_id_number').trigger('focus'); } else { $('#caller_extension_uuid').trigger('focus'); }";
|
||||
echo " }";
|
||||
echo " }";
|
||||
echo "</script>";
|
||||
|
||||
@@ -227,7 +227,7 @@
|
||||
'<label for="id' + key + '">'
|
||||
+ val.label + '</label>');
|
||||
});
|
||||
choiceContainer.find("input").click(plotAccordingToChoices);
|
||||
choiceContainer.find("input").on('click', plotAccordingToChoices);
|
||||
|
||||
function plotAccordingToChoices() {
|
||||
var data = [];
|
||||
|
||||
Reference in New Issue
Block a user