diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-18 16:40:26 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-18 16:40:26 +0000 |
commit | 6276d279e63da27c9021bd5b9aa7f0f6d2ee9580 (patch) | |
tree | b340b2b51e8b114efa8a4d3680543f6202a89386 /modules/kajax/ajax.js | |
parent | be80aa0e63819afdff2cde292980ac48ca2c8cf6 (diff) | |
download | ampache-6276d279e63da27c9021bd5b9aa7f0f6d2ee9580.tar.gz ampache-6276d279e63da27c9021bd5b9aa7f0f6d2ee9580.tar.bz2 ampache-6276d279e63da27c9021bd5b9aa7f0f6d2ee9580.zip |
broke the ajax stuff but its the first half of the fix
Diffstat (limited to 'modules/kajax/ajax.js')
-rwxr-xr-x | modules/kajax/ajax.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/kajax/ajax.js b/modules/kajax/ajax.js index 28e977cb..29f9fa7b 100755 --- a/modules/kajax/ajax.js +++ b/modules/kajax/ajax.js @@ -2,7 +2,11 @@ var IE = true;
// uid is an array of uids that need to be replaced
- function ajaxPut(url) {
+ function ajaxPut(url,source) {
+
+ if (document.getElementById(source)) {
+ Event.stopObserving(source.'click',function(){ajaxPut(url,source);});
+ }
if (window.ActiveXObject) { // IE
try {
@@ -45,8 +49,12 @@ }
}
- function ajaxPost(url,input) {
+ function ajaxPost(url,input,source) {
+ if (document.getElementById(source)) {
+ Event.stopObserving(source,'click',function(){ajaxPost(url,input,source);});
+ }
+
var post_data = 'a=0';
var data = document.getElementById(input).elements;
|