Description: Fixes for jquery
 Debian ships a version of jquery that doesn't support live() anymore
Author: Jean-Michel Vourgère <nirgal@debian.org>
Bug-Debian: https://bugs.debian.org/941727
Forwarded: https://github.com/phppgadmin/phppgadmin/pull/76
Last-Update: 2019-10-03

--- phppgadmin-7.12.0+ds.orig/js/ac_insert_row.js
+++ phppgadmin-7.12.0+ds/js/ac_insert_row.js
@@ -168,11 +168,11 @@ function autocomplete(event) {
 
 /* bind actions on values lines: hover for style change, click for select */
 with(jQuery('tr.acline')) {
-	live('mouseover', function () {
+	on('mouseover', function () {
 		selectVal(jQuery('table.ac_values tr').index(this));
 	});
 
-	live('click', function () {
+	on('click', function () {
 		var a = jQuery(this).find('td > a.fkval');
 
 		for (i=0; i < a.length; i++) {
@@ -182,7 +182,7 @@ with(jQuery('tr.acline')) {
 	});
 }
 
-jQuery('#fkprev').live('click', function () {
+jQuery('#fkprev').on('click', function () {
 	jQuery.ppa.o -= 11;
 	/* get the field that is the previous html elt from the #fklist
 	 * and trigger its focus to refresh the list AND actualy 
@@ -190,7 +190,7 @@ jQuery('#fkprev').live('click', function
 	jQuery('#fklist').prev().focus();
 });
 
-jQuery('#fknext').live('click', function () {
+jQuery('#fknext').on('click', function () {
 	jQuery.ppa.o += 11;
 	/* get the field that is the previous html elt from the #fklist
 	 * and trigger its focus to refresh the list AND actualy 
--- phppgadmin-7.12.0+ds.orig/js/display.js
+++ phppgadmin-7.12.0+ds/js/display.js
@@ -9,7 +9,7 @@ $(document).ready(function() {
 		root: $('#root')
 	};
 	
-	$("a.fk").live('click', function (event) {
+	$("a.fk").on('click', function (event) {
 		/* make the cursor being a waiting cursor */
 		$('body').css('cursor','wait');
 
@@ -80,7 +80,7 @@ $(document).ready(function() {
 		return false; // do not refresh the page
 	});
 
-	$(".fk_delete").live('click', function (event) {
+	$(".fk_delete").on('click', function (event) {
 		with($(this).closest('div')) {
 			data('ref').closest('tr').find('a.'+data('refclass')).closest('div').removeClass('highlight');
 			remove();
