Skip to content

Commit

Permalink
function() standardize (openemr#3173)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Mar 17, 2020
1 parent 651e802 commit dd47a41
Show file tree
Hide file tree
Showing 227 changed files with 349 additions and 349 deletions.
4 changes: 2 additions & 2 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@ function sqlQuery($statement, $link)
</div>
</div>
<script>
$(function() {
$(function () {
$('#help-href').click (function(){
document.getElementById('targetiframe').src = "Documentation/help_files/openemr_multisite_admin_help.php";
})
});
$(function() {
$(function () {
$('#print-help-href').click (function(){
$("#targetiframe").get(0).contentWindow.print();
})
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 @@ -105,7 +105,7 @@

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

$(function(){
$(function () {
$(".save").click(function() { top.restoreSession(); document.my_form.submit(); });
$(".dontsave").click(function() { parent.closeTab(window.name, false); });

Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/example2/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function PrintForm() {
<script language="javascript">
// jQuery stuff to make the page a little easier to use

$(function(){
$(function () {
$(".save").click(function() { top.restoreSession(); document.my_form.submit(); });
$(".dontsave").click(function() { parent.closeTab(window.name, false); });
$(".printform").click(function() { PrintForm(); });
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 @@ -105,7 +105,7 @@
my $date_header =<<'START';
<script language='JavaScript'>
$(function (){
$(function () {
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
<?php $datetimepicker_showseconds = false; ?>
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">
$(function(){
$(function () {
autosave();
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/psychiatrySet/brief_aan_verwijzer/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function getPatientDateOfLastEncounter($nPid)

?>
<script>
$(function(){
$(function () {
autosave();
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
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">
$(function(){
$(function () {
autosave();
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
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">
$(function(){
$(function () {
autosave();
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
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">
$(function(){
$(function () {
autosave();
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
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">
$(function(){
$(function () {
autosave();
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/xmlformgen/xslt/new.php.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ require_once($GLOBALS['srcdir'].'/options_listadd.inc');
<script type="text/javascript">
// jQuery stuff to make the page a little easier to use
$(function (){
$(function () {
$(".save").click(function() { top.restoreSession(); document.forms["<?php echo $form_folder; ?>"].submit(); });
$(".dontsave").click(function() { location.href='parent.closeTab(window.name, false)'; });
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/xmlformgen/xslt/show.php.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function PrintForm() {
<script type="text/javascript">
// jQuery stuff to make the page a little easier to use
$(function (){
$(function () {
$(".print").click(function() { PrintForm(); });
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion contrib/forms/xmlformgen/xslt/view.php.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function PrintForm() {
<script type="text/javascript">
// jQuery stuff to make the page a little easier to use
$(function (){
$(function () {
$(".save").click(function() { top.restoreSession(); document.forms["<?php echo $form_folder; ?>"].submit(); });
<?php if ($returnurl == 'show.php') { ?>
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 @@

<script language="javascript">

$(function(){
$(function () {

// capture RETURN keypress
$("#limit").on("keypress", function(evt) { if (evt.keyCode == 13) $("#do_search").click(); });
Expand Down
2 changes: 1 addition & 1 deletion custom/download_qrda.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
var provider_id = <?php echo js_escape($provider_id);?>;
var zipFileArray = new Array();
var failureMessage = "";
$(function(){
$(function () {
$("#checkAll").on("change", function() {
var checked = ( $("#checkAll").prop("checked") ) ? true : false;
$("#thisForm input:checkbox").each(function() {
Expand Down
2 changes: 1 addition & 1 deletion interface/billing/billing_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ function divtoggle(spanid, divid) { //Called in the Expand, Collapse links(This
echo "alert(" . js_escape($alertmsg) . ");\n";
}
?>
$(function() {
$(function () {
$("#view-log-link").click(function() {
top.restoreSession();
dlgopen('customize_log.php', '_blank', 750, 400);
Expand Down
2 changes: 1 addition & 1 deletion interface/billing/edi_270.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function toggleMessage(id,x12){

}

$(function() {
$(function () {
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
<?php $datetimepicker_showseconds = false; ?>
Expand Down
12 changes: 6 additions & 6 deletions interface/billing/edih_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<head>
<title><?php echo xlt("edi history"); ?></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />

<!-- TODO: Address no_bootstrap here !-->
<?php Header::setupHeader(['no_main-theme', 'no_bootstrap', 'datetime-picker', 'datatables', 'datatables-jqui', 'datatables-jqui-theme', 'datatables-scroller', 'datatables-scroller-jqui-theme', 'jquery-ui', 'jquery-ui-sunny']); ?>

Expand Down Expand Up @@ -302,19 +302,19 @@

<!-- end DataTables js Begin local js -->
<script>
$(function() {
$(function () {
// activate tab interface
$("#tabs").tabs();
$("#tabs").tabs().css('visibility','visible');
// set some button disabled
$('#processfiles').prop('disabled', true);
$('#archivesubmit').prop('disabled', true);
// update list of available csv tables
$(function() { csvlist() });
$(function () { csvlist() });
// update list of available log files
$(function() { loglist() });
$(function () { loglist() });
// update list of archive files
$(function() { archlist() });
$(function () { archlist() });
// hide these div elements until used
$("#fileupl1").toggle(false);
$("#fileupl2").toggle(false);
Expand Down Expand Up @@ -342,7 +342,7 @@ function bytesToSize(bytes) {
/* *** variables for upload maximums *** */
/* *** phpserver: 'maxfsize''maxfuploads''postmaxsize''tmpdir' phpserver['postmaxsize'] *** */
var phpserver = [];
$(function() {
$(function () {
$.ajax({
url: 'edih_main.php',
data: {
Expand Down
4 changes: 2 additions & 2 deletions interface/billing/edit_payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ function DeletePaymentDistribution(DeleteId)
}
//========================================================================================

$(function() {
$(function () {
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
<?php $datetimepicker_showseconds = false; ?>
Expand Down Expand Up @@ -1055,7 +1055,7 @@ function DeletePaymentDistribution(DeleteId)
<td class="<?php echo attr($StringClass); ?>">
<input autocomplete="off" id="Allowed<?php echo attr($CountIndex); ?>" name="Allowed<?php echo attr($CountIndex); ?>" onchange="ValidateNumeric(this);ScreenAdjustment(this,<?php echo attr_js($CountIndex); ?>);UpdateTotalValues(1,<?php echo attr_js($TotalRows); ?>,'Allowed','allowtotal');UpdateTotalValues(1,<?php echo attr_js($TotalRows); ?>,'Payment','paymenttotal');UpdateTotalValues(1,<?php echo attr_js($TotalRows); ?>,'AdjAmount','AdjAmounttotal');RestoreValues(<?php echo attr_js($CountIndex); ?>)" onkeydown="PreventIt(event)" style="width:60px; font-size:12px" class="text-right" type="text" value="<?php echo attr($AllowedDB); ?>" />
</td>

<td class="<?php echo attr($StringClass); ?>">
<input autocomplete="off" id="Payment<?php echo attr($CountIndex); ?>" name="Payment<?php echo attr($CountIndex); ?>" onchange="ValidateNumeric(this);ScreenAdjustment(this,<?php echo attr_js($CountIndex); ?>);UpdateTotalValues(1,<?php echo attr_js($TotalRows); ?>,'Payment','paymenttotal');RestoreValues(<?php echo attr_js($CountIndex); ?>)" onkeydown="PreventIt(event)" style="width:60px; font-size:12px" class="text-right" type="text" value="<?php echo attr($PaymentDB); ?>" />
</td>
Expand Down
4 changes: 2 additions & 2 deletions interface/billing/era_payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function OnloadAction()
?>
}

$(function() {
$(function () {
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
<?php $datetimepicker_showseconds = false; ?>
Expand All @@ -158,7 +158,7 @@ function OnloadAction()
.bottom {
border-bottom:1px solid var(--black);
}
.top {
.top {
border-top:1px solid var(--black);
}
.left {
Expand Down
2 changes: 1 addition & 1 deletion interface/billing/indigent_patients_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function bucks($amount)

<script>

$(function() {
$(function () {
var win = top.printLogSetup ? top : opener.top;
win.printLogSetup(document.getElementById('printbutton'));

Expand Down
4 changes: 2 additions & 2 deletions interface/billing/new_payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function FillUnappliedAmount()
document.getElementById('TdUnappliedAmount').innerHTML=document.getElementById('payment_amount').value;
}

$(function() {
$(function () {
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
<?php $datetimepicker_showseconds = false; ?>
Expand Down Expand Up @@ -431,7 +431,7 @@ function FillUnappliedAmount()
<?php $oemr_ui->oeBelowContainerDiv();?>
<script src = '<?php echo $webroot;?>/library/js/oeUI/oeFileUploads.js'></script>
<script>
$(function() {
$(function () {
$('select').removeClass('class1 text');
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion interface/billing/search_payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@

<script>

$(function() {
$(function () {
$(".medium_modal").on('click', function (e) {
e.preventDefault();
e.stopPropagation();
Expand Down
2 changes: 1 addition & 1 deletion interface/billing/sl_receipts_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function bucks($amount)
</style>

<script>
$(function() {
$(function () {
oeFixedHeaderSetup(document.getElementById('mymaintable'));
var win = top.printLogSetup ? top : opener.top;
win.printLogSetup(document.getElementById('printbutton'));
Expand Down
14 changes: 7 additions & 7 deletions interface/billing/ub04_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
?>

<script>
$(function() {
$(function () {
$( "[title*='DATE']" ).datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
<?php $datetimepicker_showseconds = false; ?>
Expand All @@ -61,7 +61,7 @@
$('#formHelp').toggle();
});

$( function() {
$(function () {
$("[title*='REVENUE CODE']").select2({
ajax: {
url: "./ub04_helpers.php",
Expand All @@ -87,7 +87,7 @@
}
});
});
$( function() {
$(function () {
$("[title*='OCCURRENCE CODE']").select2({
ajax: {
url: "./ub04_helpers.php",
Expand All @@ -113,7 +113,7 @@
}
});
});
$( function() {
$(function () {
$("[title*='OCCURRENCE SPAN CODE']").select2({
ajax: {
url: "./ub04_helpers.php",
Expand All @@ -139,7 +139,7 @@
}
});
});
$( function() {
$(function () {
$("[title*='VALUE CODE']").select2({
ajax: {
url: "./ub04_helpers.php",
Expand All @@ -165,7 +165,7 @@
}
});
});
$( function() {
$(function () {
$("[title*='CONDITION CODE']").select2({
ajax: {
url: "./ub04_helpers.php",
Expand All @@ -191,7 +191,7 @@
}
});
});
$( function() {
$(function () {
$("[title*='STATUS']").select2({
ajax: {
url: "./ub04_helpers.php",
Expand Down
2 changes: 1 addition & 1 deletion interface/clickmap/template/general_new.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<script type="text/javascript">
var cancellink = '{$DONT_SAVE_LINK}';
{literal}
$( function() {
$(function () {
$("#cancel").click(function() { location.href=cancellink; });
var optionsLabel = {/literal}{$form->optionsLabel}{literal};
var options = {/literal}{$form->optionList}{literal};
Expand Down
2 changes: 1 addition & 1 deletion interface/cmsportal/history_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function validate() {
return true;
}

$(function() {
$(function () {
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
<?php $datetimepicker_showseconds = false; ?>
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 @@ -263,7 +263,7 @@ function validate() {
return true;
}

$(function() {
$(function () {
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
<?php $datetimepicker_showseconds = false; ?>
Expand Down
2 changes: 1 addition & 1 deletion interface/cmsportal/issue_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function validate() {
return true;
}

$(function() {
$(function () {
$("#form_type").on('change', function() {
myRestoreSession();
document.forms[0].submit();
Expand Down
2 changes: 1 addition & 1 deletion interface/cmsportal/lbf_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function openPatient() {
opener.top.RTop.document.location.href = '../patient_file/summary/demographics.php?set_pid=<?php echo attr($ptid); ?>';
}

$(function() {
$(function () {
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
<?php $datetimepicker_showseconds = false; ?>
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 @@ -183,7 +183,7 @@ function openMessage(messageid) {
document.location.href = 'upload_form.php?messageid=' + messageid;
}

$(function() {
$(function () {
$('.datepicker').datetimepicker({
<?php $datetimepicker_timepicker = false; ?>
<?php $datetimepicker_showseconds = false; ?>
Expand Down
Loading

0 comments on commit dd47a41

Please sign in to comment.