Skip to content

Commit

Permalink
Refactor openemr#3542: remove outdated javascript attribute (openemr#…
Browse files Browse the repository at this point in the history
…3599)

* refactor: remove outdated javascript attribute

* refactor: remove comment script
  • Loading branch information
stu01509 committed Jun 6, 2020
1 parent d732a74 commit 94608c7
Show file tree
Hide file tree
Showing 222 changed files with 387 additions and 393 deletions.
6 changes: 3 additions & 3 deletions Documentation/help_files/openemr_installation_help.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<head>
<link rel=stylesheet href="../../public/themes/style_light.css">
<link rel="stylesheet" href="../../public/assets/jquery-ui/jquery-ui.css">
<script type="text/javascript" src="../../public/assets/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="../../public/assets/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="../../public/assets/jquery/dist/jquery.min.js"></script>
<script src="../../public/assets/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="../../public/assets/@fortawesome/fontawesome-free/css/all.min.css">
<link rel="shortcut icon" href="../../public/images/favicon.ico" />
<script type="text/javascript" src="../../public/assets/jquery-ui/jquery-ui.js"></script>
<script src="../../public/assets/jquery-ui/jquery-ui.js"></script>
<title><?php echo ("OpenEMR Installation Help");?></title>
<style>
@media only screen and (max-width: 768px) {
Expand Down
6 changes: 3 additions & 3 deletions Documentation/help_files/openemr_multisite_admin_help.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<head>
<link rel=stylesheet href="../../public/themes/style_light.css">
<link rel="stylesheet" href="../../public/assets/jquery-ui/jquery-ui.css">
<script type="text/javascript" src="../../public/assets/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="../../public/assets/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="../../public/assets/jquery/dist/jquery.min.js"></script>
<script src="../../public/assets/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="../../public/assets/@fortawesome/fontawesome-free/css/all.min.css">
<link rel="shortcut icon" href="../../public/images/favicon.ico" />
<script type="text/javascript" src="../../public/assets/jquery-ui/jquery-ui.js"></script>
<script src="../../public/assets/jquery-ui/jquery-ui.js"></script>
<title><?php echo ("Multi Site Administration Help");?></title>
<style>
@media only screen and (max-width: 768px) {
Expand Down
4 changes: 2 additions & 2 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function sqlQuery($statement, $link)
<head>
<title>OpenEMR Site Administration</title>
<link rel="stylesheet" href="public/assets/bootstrap/dist/css/bootstrap.min.css">
<script type="text/javascript" src="public/assets/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="public/assets/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="public/assets/jquery/dist/jquery.min.js"></script>
<script src="public/assets/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="public/assets/@fortawesome/fontawesome-free/css/all.min.css">
<link rel="shortcut icon" href="public/images/favicon.ico" />
<style>
Expand Down
2 changes: 1 addition & 1 deletion ccr/createCCR.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ function sourceType($ccr, $uuid)

function displayError($message)
{
echo '<script type="text/javascript">alert("' . addslashes($message) . '");</script>';
echo '<script>alert("' . addslashes($message) . '");</script>';
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

{literal}

<script language="javascript">
<script>



Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/example2/new.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

</body>

<script language="javascript">
<script>

// jQuery stuff to make the page a little easier to use

Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/example2/print.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

</body>

<script language="javascript">
<script>
window.print();
window.close();
</script>
Expand Down
4 changes: 2 additions & 2 deletions contrib/forms/example2/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

<link rel="stylesheet" href="../../forms/<?php echo $form_folder; ?>/style.css?v=<?php echo $v_js_includes; ?>">

<script language="JavaScript">
<script>
function PrintForm() {
newwin = window.open("<?php echo "http:https://" . $_SERVER['SERVER_NAME'] . $rootdir . "/forms/" . $form_folder . "/print.php?id=" ?>" + <?php echo js_url($_GET["id"]); ?>,"mywin");
}
Expand Down Expand Up @@ -136,7 +136,7 @@ function PrintForm() {

</body>

<script language="javascript">
<script>
// jQuery stuff to make the page a little easier to use

$(function () {
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/formmaker/formscript.pl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
my $date_field_exists = 0;
my $date_header =<<'START';
<script language='JavaScript'>
<script>
$(function () {
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/ippf_srh/new.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function end_group()

</style>

<script language="JavaScript">
<script>

// Supports customizable forms (currently just for IPPF).
function divclick(cb, divid) {
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/psychiatrySet/brief_aan_verwijzer/new.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function getPatientDateOfLastEncounter($nPid)
}

?>
<script type="text/javascript">
<script>
$(function () {
autosave();
$('.datepicker').datetimepicker({
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/psychiatrySet/intakeverslag/new.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function getPatientDateOfLastEncounter($nPid)
}

?>
<script type="text/javascript">
<script>
$(function () {
autosave();
$('.datepicker').datetimepicker({
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/psychiatrySet/intakeverslag/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function getPatientDateOfLastEncounter($nPid)
}

?>
<script type="text/javascript">
<script>
$(function () {
autosave();
$('.datepicker').datetimepicker({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function getPatientDateOfLastEncounter($nPid)
}

?>
<script type="text/javascript">
<script>
$(function () {
autosave();
$('.datepicker').datetimepicker({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function getPatientDateOfLastEncounter($nPid)
}

?>
<script type="text/javascript">
<script>
$(function () {
autosave();
$('.datepicker').datetimepicker({
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/soccer_injury/new.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function cbcell($name, $desc, $colname)
<style>
.billcell { font-family: sans-serif; font-size: 10pt }
</style>
<script language="JavaScript">
<script>

</script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/soccer_injury/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function cbcell($name, $desc, $colname)
<style>
.billcell { font-family: sans-serif; font-size: 10pt }
</style>
<script language="JavaScript">
<script>

</script>
</head>
Expand Down
4 changes: 2 additions & 2 deletions contrib/forms/xmlformgen/xslt/new.php.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $submiturl = $GLOBALS['rootdir'].'/forms/'.$form_folder.'/save.php?mode=new&amp;
<!-- Form Specific Stylesheet. -->
<link rel="stylesheet" href="../../forms/<?php echo $form_folder; ?>/style.css">
<script type="text/javascript">
<script>
// this line is to assist the calendar text boxes
var mypcc = '<?php echo $GLOBALS['phone_country_code']; ?>';
Expand Down Expand Up @@ -140,7 +140,7 @@ require_once($GLOBALS['srcdir'].'/options_listadd.inc');
</fieldset>
</div><!-- end bottom_buttons -->
</form>
<script type="text/javascript">
<script>
// jQuery stuff to make the page a little easier to use
$(function () {
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/xmlformgen/xslt/print.php.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ $returnurl = 'encounter_top.php';
</div><!-- end print_form_container -->
</form>
<script type="text/javascript">
<script>
window.print();
window.close();
</script>
Expand Down
4 changes: 2 additions & 2 deletions contrib/forms/xmlformgen/xslt/show.php.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ $returnurl = "../../forms/$form_folder/view.php?mode=noencounter";
<!-- Form Specific Stylesheet. -->
<link rel="stylesheet" href="../../forms/<?php echo $form_folder; ?>/style.css">
<script type="text/javascript">
<script>
<!-- FIXME: this needs to detect access method, and construct a URL appropriately! -->
function PrintForm() {
Expand Down Expand Up @@ -118,7 +118,7 @@ function PrintForm() {
</div><!-- end button_bar -->
</form>
<script type="text/javascript">
<script>
// jQuery stuff to make the page a little easier to use
$(function () {
Expand Down
4 changes: 2 additions & 2 deletions contrib/forms/xmlformgen/xslt/view.php.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ else
<!-- Form Specific Stylesheet. -->
<link rel="stylesheet" href="../../forms/<?php echo $form_folder; ?>/style.css">
<script type="text/javascript">
<script>
// this line is to assist the calendar text boxes
var mypcc = '<?php echo $GLOBALS['phone_country_code']; ?>';
Expand Down Expand Up @@ -134,7 +134,7 @@ function PrintForm() {
</fieldset>
</div><!-- end bottom_buttons -->
</form>
<script type="text/javascript">
<script>
// jQuery stuff to make the page a little easier to use
$(function () {
Expand Down
2 changes: 1 addition & 1 deletion contrib/util/de_identification_upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function upgradeFromSqlFile_de($filename)
}
?>

<script language="JavaScript">
<script>
function form_validate()
{
if(document.forms[0].root_user_name.value == "")
Expand Down
2 changes: 1 addition & 1 deletion contrib/util/dupecheck/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@

</body>

<script language="javascript">
<script>

$(function () {

Expand Down
2 changes: 1 addition & 1 deletion contrib/util/dupecheck/mergerecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function UpdateTable($tablename, $pid_col, $oldvalue, $newvalue)

</body>
<?php if ($commitchanges == true) : ?>
<script language="javascript">
<script>
window.opener.removedupe(<?php echo js_escape($parameters['dupecount']); ?>);
window.close();
</script>
Expand Down
2 changes: 1 addition & 1 deletion custom/export_qrda_xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@
<?php Header::setupHeader('opener'); ?>
<title><?php echo xlt('Export QRDA Report'); ?></title>

<script type="text/javascript">
<script>
//Close Me function
function closeme() {
window.close();
Expand Down
6 changes: 3 additions & 3 deletions gacl/admin/templates/phpgacl/acl_admin.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{include file="phpgacl/header.tpl"}
<script LANGUAGE="JavaScript">
{include file="phpgacl/header.tpl"}
<script>
{$js_array}
</script>
{include file="phpgacl/acl_admin_js.tpl"}
Expand Down Expand Up @@ -177,4 +177,4 @@
<input type="hidden" name="return_page" value="{$return_page}">
</div>
</form>
{include file="phpgacl/footer.tpl"}
{include file="phpgacl/footer.tpl"}
4 changes: 2 additions & 2 deletions gacl/admin/templates/phpgacl/acl_admin_js.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{literal}
<script language="JavaScript" src="admin_functions.js">
<script src="admin_functions.js">
</script>
{/literal}
{/literal}
6 changes: 3 additions & 3 deletions gacl/admin/templates/phpgacl/assign_group.tpl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{include file="phpgacl/header.tpl"}
<script LANGUAGE="JavaScript">
<script>
{$js_array}
</script>
{include file="phpgacl/acl_admin_js.tpl"}
</head>
<body onload="populate(document.assign_group.{$group_type}_section,document.assign_group.elements['objects[]'], '{$js_array_name}')">
{include file="phpgacl/navigation.tpl"}
{include file="phpgacl/navigation.tpl"}
<form method="post" name="assign_group" action="assign_group.php">
<table cellpadding="2" cellspacing="2" border="2" width="100%">
<tbody>
Expand Down Expand Up @@ -100,4 +100,4 @@
<input type="hidden" name="group_type" value="{$group_type}">
<input type="hidden" name="return_page" value="{$return_page}">
</form>
{include file="phpgacl/footer.tpl"}
{include file="phpgacl/footer.tpl"}
2 changes: 1 addition & 1 deletion interface/billing/edi_270.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function unique_by_key($source, $key)

</style>

<script type="text/javascript">
<script>

var stringDelete = <?php echo xlj('Do you want to remove this record?'); ?>;
var stringBatch = <?php echo xlj('Please select X12 partner, required to create the 270 batch'); ?>;
Expand Down
2 changes: 1 addition & 1 deletion interface/billing/edi_271.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
}
}
</style>
<script type="text/javascript">
<script>
function edivalidation() {
var mypcc = <?php echo xlj('Required Field Missing: Please choose the EDI-271 file to upload'); ?>;
if (document.getElementById('uploaded').value == "") {
Expand Down
4 changes: 2 additions & 2 deletions interface/clickmap/template/general_new.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
{headerTemplate}
{/if}
<script type="text/javascript" src="{php}echo $GLOBALS['webroot'];{/php}/library/js/clickmap.js"></script>
<script src="{php}echo $GLOBALS['webroot'];{/php}/library/js/clickmap.js"></script>
<link rel="stylesheet" href="{$form->template_dir}/css/clickmap.css" />
{if !$reportMode}
</head>
Expand Down Expand Up @@ -43,7 +43,7 @@
<span class='count'></span>
</div>

<script type="text/javascript">
<script>
{literal}
$(function () {
var optionsLabel = {/literal}{$form->optionsLabel}{literal};
Expand Down
2 changes: 1 addition & 1 deletion interface/cmsportal/insurance_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ function validate() {

</form>

<script language="JavaScript">
<script>

// Fix inconsistently formatted phone numbers from the database.
var f = document.forms[0];
Expand Down
2 changes: 1 addition & 1 deletion interface/cmsportal/list_requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function patientNameFromLogin($login)
}
</style>

<script language="JavaScript">
<script>

function myRestoreSession() {
// This works whether we are a popup or in the OpenEMR frameset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
text-align: center;
}</style>

<script language="JavaScript">
<script>
//get value from popup window
function set_related(s,type) {
var list;
Expand Down
2 changes: 1 addition & 1 deletion interface/de_identification_forms/find_drug_popup.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
td { font-size:10pt; }
</style>

<script language="JavaScript">
<script>
//pass value selected to the parent window
function window_submit(chk)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
text-align: center;
}
</style>
<script language="JavaScript">
<script>
function form_validate()
{

Expand Down
Loading

0 comments on commit 94608c7

Please sign in to comment.