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:
@@ -1708,6 +1708,12 @@ function number_pad($number,$n) {
|
||||
default:
|
||||
return;
|
||||
}
|
||||
//filter direction
|
||||
switch ($direction) {
|
||||
case 'down': $direction = 'keydown'; break;
|
||||
case 'press': $direction = 'keypress'; break;
|
||||
case 'up': $direction = 'keyup'; break;
|
||||
}
|
||||
//check for element exceptions
|
||||
if (sizeof($exceptions) > 0) {
|
||||
$exceptions = "!$(e.target).is('".implode(',', $exceptions)."') && ";
|
||||
@@ -1719,7 +1725,7 @@ function number_pad($number,$n) {
|
||||
if ($script_wrapper) {
|
||||
echo "<script language='JavaScript' type='text/javascript'>\n";
|
||||
}
|
||||
echo " $(".$subject.").key".$direction."(function(e) {\n";
|
||||
echo " $(".$subject.").on('".$direction."', function(e) {\n";
|
||||
echo " if (".$exceptions.$key_code.") {\n";
|
||||
if ($prompt != '') {
|
||||
$action = ($action != '') ? $action : "alert('".$key."');";
|
||||
|
||||
Reference in New Issue
Block a user