chriskuhar wrote on Thursday, December 19, 2013:
We were testing on an iphone and noticed selecting a patient did not work. Investigating I noticed we use jQuery live(), which is depricated, and has known issues with the IOS browser. Replacing live() with delegate() fixes the problem:
diff --git a/interface/main/finder/dynamic_finder.php b/interface/main/finder/dynamic_find
index c46d9d7…0a13170 100644
— a/interface/main/finder/dynamic_finder.php
+++ b/interface/main/finder/dynamic_finder.php
@@ -104,7 +104,8 @@ $(document).ready(function() {
});
// OnClick handler for the rows
- $(’#pt_table tbody tr’).live(‘click’, function () {
- $(’#pt_table’).delegate(‘tr’, ‘click’, function () {
var newpid = this.id.substring(4);