Scarab commit: svn commit: r10859 - branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueBody.vm

Johannes Höchstädter <[email protected]>
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: jhoech
Date: 2009-10-26 06:49:20-0700
New Revision: 10859

Modified:
   branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueBody.vm

Log:
CHG - Moved macro to top position in code file.

Modified: branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueBody.vm
Url: http://scarab.tigris.org/source/browse/scarab/branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueBody.vm?view=diff&pathrev=10859&r1=10858&r2=10859
==============================================================================
--- branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueBody.vm	(original)
+++ branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueBody.vm	2009-10-26 06:49:20-0700
@@ -15,6 +15,18 @@
 #set ($showCopyButton = $copyToModules && !$copyToModules.isEmpty())
 #set ($showMoveButton = $moveToModules && !$moveToModules.isEmpty())
 
+## Creates heading for given tab and title.
+## Toggles event handler, which makes it possible to the user
+## to switch current tab on or off.
+#macro (tabHeading $tabId $title)
+	#if($tab.equals("all"))
+		#set($imgName = $tabId.concat(".state"))
+		<h3 onClick=smartToggleVisibility('$tabId')><img name="$imgName" src="$staticLink.setPath($iconCollapse)"/>$title</h3>
+	#else
+		<h3>$title</h3>
+	#end
+#end
+
 <input type="hidden" name="action" value="ModifyIssue" />
 <input type="hidden" name="mod_ts" value="$scarabG.Now.Time" />
 <input type="hidden" name="id" value="$currentIssueId" />
@@ -39,18 +51,6 @@
 ##   </div>
 ## #end
 
-## Creates heading for given tab and title.
-## Toggles event handler, which makes it possible to the user
-## to switch current tab on or off.
-#macro (tabHeading $tabId $title)
-	#if($tab.equals("all"))
-		#set($imgName = $tabId.concat(".state"))
-		<h3 onClick=smartToggleVisibility('$tabId')><img name="$imgName" src="$staticLink.setPath($iconCollapse)"/>$title</h3>
-	#else
-		<h3>$title</h3>
-	#end
-#end
-
 <div class="scarab-canvas">

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=2411386
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.