diff --git a/lib/class/ajax.class.php b/lib/class/ajax.class.php index 9d6f6a26..ea946883 100644 --- a/lib/class/ajax.class.php +++ b/lib/class/ajax.class.php @@ -58,7 +58,7 @@ class Ajax } $observe = ""; return $observe; diff --git a/lib/javascript/ajax.js b/lib/javascript/ajax.js index 90b68d86..0e787eca 100644 --- a/lib/javascript/ajax.js +++ b/lib/javascript/ajax.js @@ -27,12 +27,18 @@ $(document).ajaxComplete(function () { // Post the contents of a form. function ajaxPost(url, input, source) { //$('#' + input) + if ($(source)) { + $(source).off('click', function(){ ajaxPost(url, input, source); }); + } $.ajax(url, { success: processContents, type: 'post', data: $('#'+input).serialize() }); } // ajaxPost // ajaxPut // Get response from the specified URL. function ajaxPut(url, source) { + if ($(source)) { + $(source).off('click', function(){ ajaxPut(url, source); }); + } $.ajax(url, { success: processContents, type: 'post', dataType: 'xml' }); } // ajaxPut diff --git a/lib/javascript/search.js b/lib/javascript/search.js index 525565db..63d11a1e 100644 --- a/lib/javascript/search.js +++ b/lib/javascript/search.js @@ -64,7 +64,7 @@ var SearchRow = { $('searchtable').appendChild(row); rowCount++; - $(cells[3]).click(function(e){if(rowCount > 1) { Element.remove(this.parentNode); rowCount--; }}); + $(cells[3]).on('click', function(){if(rowCount > 1) { Element.remove(this.parentNode); rowCount--; }}); rowIter++; }, diff --git a/templates/show_html5_player.inc.php b/templates/show_html5_player.inc.php index c8683502..d4159191 100644 --- a/templates/show_html5_player.inc.php +++ b/templates/show_html5_player.inc.php @@ -164,7 +164,7 @@ foreach ($playlist->urls as $item) { swfPath: "/modules/jplayer/", supplied: "", audioFullScreen: true, - solution: "html5, flash", + solution: "html, flash", size: {