Prechádzať zdrojové kódy

Bug fix: "shortcut" actions were not perserving the current tab. Fixed.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1480 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 rokov pred
rodič
commit
b2515d755f
1 zmenil súbory, kde vykonal 14 pridanie a 1 odobranie
  1. 14 1
      application/itopwebpage.class.inc.php

+ 14 - 1
application/itopwebpage.class.inc.php

@@ -288,7 +288,20 @@ EOF
 			}
 		});
 	});
-	  
+	
+	// Shortcut menu actions
+	$('.actions_button a').click( function() {
+		aMatches = /#(.*)$/.exec(window.location.href);
+		if (aMatches != null)
+		{
+			currentHash = aMatches[1];
+			if ( /#(.*)$/.test(this.href))
+			{
+				this.href = this.href.replace(/#(.*)$/, '#'+currentHash);
+			}
+		}
+	});
+
 	// End of Tabs handling
 	$("table.listResults").tableHover(); // hover tables
 	$(".date-pick").datepicker({