packages: jquery/jquery.history.konqueror.patch - updated to 1.4.4 (thx glen)

charles charles at pld-linux.org
Tue Nov 23 13:55:10 CET 2010


Author: charles                      Date: Tue Nov 23 12:55:10 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 1.4.4 (thx glen)

---- Files affected:
packages/jquery:
   jquery.history.konqueror.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/jquery/jquery.history.konqueror.patch
diff -u packages/jquery/jquery.history.konqueror.patch:1.1 packages/jquery/jquery.history.konqueror.patch:1.2
--- packages/jquery/jquery.history.konqueror.patch:1.1	Thu Jan  8 12:26:56 2009
+++ packages/jquery/jquery.history.konqueror.patch	Tue Nov 23 13:55:05 2010
@@ -1,46 +1,22 @@
---- ./jquery.history.js	2007-02-15 15:43:05.000000000 +0200
-+++ ./jquery.history.js	2009-01-08 13:03:31.920508431 +0200
-@@ -34,7 +34,7 @@
- 			iframe.close();
- 			iframe.location.hash = current_hash;
- 		}
--		else if ($.browser.safari) {
-+		else if (jQuery.browser.safari) {
- 			// etablish back/forward stacks
- 			jQuery.historyBackStack = [];
- 			jQuery.historyBackStack.length = history.length;
-@@ -67,7 +67,7 @@
- 				jQuery.historyCallback(current_hash.replace(/^#/, ''));
- 				
- 			}
--		} else if ($.browser.safari) {
-+		} else if (jQuery.browser.safari) {
- 			if (!jQuery.dontCheck) {
- 				var historyDelta = history.length - jQuery.historyBackStack.length;
- 				
-@@ -108,11 +108,9 @@
- 	},
- 	historyLoad: function(hash){
+--- ./jquery.history.js.orig	2009-10-13 17:24:28.000000000 +0200
++++ ./jquery.history.js	2010-11-23 13:49:34.000000000 +0100
+@@ -123,7 +123,7 @@
  		var newhash;
--		
+ 		hash = decodeURIComponent(hash.replace(/\?.*$/, ''));
+ 		
 -		if (jQuery.browser.safari) {
 +		if (jQuery.browser.safari || BrowserDetect.browser == 'Konqueror') {
  			newhash = hash;
--		}
--		else {
-+		}	else {
- 			newhash = '#' + hash;
- 			location.hash = newhash;
  		}
-@@ -141,7 +139,10 @@
+ 		else {
+@@ -156,6 +156,10 @@
  			//      URL in the browser and the "history" object are both updated correctly.
  			location.hash = newhash;
  		}
--		else {
-+		else if(BrowserDetect.browser == 'Konqueror'){
++		else if (BrowserDetect.browser == 'Konqueror') {
 +			location.hash = newhash;
 +			jQuery.historyCallback(hash);
-+		}	else {
++		}
+ 		else {
  		  jQuery.historyCallback(hash);
  		}
- 	}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/jquery/jquery.history.konqueror.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list