Skip to content

Commit

Permalink
updated depcreated jQuery .ready code
Browse files Browse the repository at this point in the history
  • Loading branch information
litemikx committed Sep 4, 2019
1 parent d09441e commit 548c425
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion interface/expand_contract_js.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use OpenEMR\Common\Csrf\CsrfUtils;

?>
$( document ).ready(function() {
$(function() {
$('.expand_contract').click(function() {
var elementTitle = $(this).prop('title');
var contractTitle = <?php echo xlj('Click to Contract and set to henceforth open in Centered mode'); ?>;
Expand Down
2 changes: 1 addition & 1 deletion interface/login/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<script type="text/javascript" src="<?php echo $webroot ?>/interface/product_registration/product_registration_controller.js?v=<?php echo $v_js_includes; ?>"></script>

<script type="text/javascript">
jQuery(document).ready(function() {
$(function() {
init();

var productRegistrationController = new ProductRegistrationController();
Expand Down
2 changes: 1 addition & 1 deletion interface/main/about_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<script type="text/javascript" src="<?php echo $webroot ?>/interface/product_registration/product_registration_controller.js?v=<?php echo $v_js_includes; ?>"></script>

<script type="text/javascript">
jQuery(document).ready(function() {
$(function() {
var productRegistrationController = new ProductRegistrationController();
productRegistrationController.getProductRegistrationStatus(function(err, data) {
if (err) { return; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h2>[-xlt t='Searching for appointments'-]</h2>
<script language="javascript">
// jQuery stuff to make the page a little easier to use

$(document).ready(function(){
$(function(){
$("#pc_keywords").focus();
$("#theform").submit(function() { SubmitForm(this); });
$(".calsearch_event").mouseover(function() { $(this).toggleClass("highlight"); });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@
</body>

<script>
$(document).ready(function(){
$(function() {
var win = top.printLogPrint ? top : opener.top;
win.printLogPrint(window);
});
Expand Down
2 changes: 1 addition & 1 deletion interface/main/dated_reminders/dated_reminders_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ class="form-control oe-text-to-left" style= "height:75px !Important" name="messa
</div><!--end of container div-->
</body>
<script>
$( document ).ready(function() {
$(function() {
$('#link-tooltip').tooltip({title: "<?php echo xla('This message need not necessarily be linked to a patient'); ?>"});
$('#select-tooltip').tooltip({title: "<?php echo xla('If the checkbox is checked then each individual of a group receiving this message will have to sign off by clicking the Set As Completed button'); ?>"});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/


$(document).ready(function(){
$(function() {
$(".file-uploader-progress-close").click(function(){
$(this).parents().eq(1).hide();
});
Expand Down
2 changes: 1 addition & 1 deletion interface/patient_file/erx_patient_portal_js.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
?>
//erx account status and patient portal username generator popup modals
$(document).ready(function(){
$(function() {
$(".iframe1").on('click', function(e) {
e.preventDefault();e.stopPropagation();
dlgopen('', '', 350, 300, '', '', {
Expand Down
2 changes: 1 addition & 1 deletion interface/patient_file/front_payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ function calcTaxes($row, $amount)

<?php require($GLOBALS['srcdir'] . "/restoreSession.php"); ?>

$(document).ready(function () {
$(function() {
var win = top.printLogSetup ? top : opener.top;
win.printLogSetup(document.getElementById('printbutton'));
});
Expand Down
2 changes: 1 addition & 1 deletion interface/patient_file/history/encounters.php
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ function efmouseover(elem, ptid, encid, formname, formid) {
<script language="javascript">
// jQuery stuff to make the page a little easier to use

$(document).ready(function(){
$(function() {
$(".encrow").on("mouseover", function() { $(this).toggleClass("highlight"); });
$(".encrow").on("mouseout", function() { $(this).toggleClass("highlight"); });
$(".encrow").on("click", function() { toencounter(this.id); });
Expand Down

0 comments on commit 548c425

Please sign in to comment.