View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-cms6/hippo-cms/trunk/editor/src/site/workbench/transformers/top.xsl
(Generate patch)

Comparing hippo-cms6/hippo-cms/trunk/editor/src/site/workbench/transformers/top.xsl (file contents):
Revision 36986 by bvdschans, Mon Nov 28 14:54:45 2011 UTC vs.
Revision 36987 by abogaart, Mon Nov 19 14:22:18 2012 UTC

43 <scriptpackage id="external" inline="true"> 43 <scriptpackage id="external" inline="true">
44 <script type="text/javascript" src="/workbench/js/cfx/Cfx.js">&#160;</script> 44 <script type="text/javascript" src="/workbench/js/cfx/Cfx.js">&#160;</script>
45 </scriptpackage> 45 </scriptpackage>
46 <script type="text/javascript" src="/js/scriptaculous/lib/prototype-min.js">&#160;</script> 46 <script type="text/javascript" src="/js/scriptaculous/lib/prototype-min.js">&#160;</script>
47 <script type="text/javascript" src="/js/scriptaculous/src/scriptaculous.js">&#160;</script> 47 <script type="text/javascript" src="/js/scriptaculous/src/scriptaculous.js">&#160;</script>
48 48
49 <scriptpackage id="hippoFramework"> 49 <scriptpackage id="hippoFramework">
50 <!-- Load helper functions and classes --> 50 <!-- Load helper functions and classes -->
51 <script type="text/javascript" src="/workbench/js/hippo/util.js">&#160;</script> 51 <script type="text/javascript" src="/workbench/js/hippo/util.js">&#160;</script>
52 52
53 <!-- Framework classes --> 53 <!-- Framework classes -->
70 <!-- Load framework configuration --> 70 <!-- Load framework configuration -->
71 <script type="text/javascript" src="/workbench/js/FrameworkConfiguration.js?{$randomNr}=">&#160;</script> 71 <script type="text/javascript" src="/workbench/js/FrameworkConfiguration.js?{$randomNr}=">&#160;</script>
72 72
73 <!-- Application classes --> 73 <!-- Application classes -->
74 <scriptpackage id="hippoApplication"> 74 <scriptpackage id="hippoApplication">
75 <script type="text/javascript" src="/workbench/js/hippo/cms.js">&#160;</script> 75 <script type="text/javascript" src="/workbench/js/hippo/cms.js">&#160;</script>
76 <script type="text/javascript" src="/workbench/js/hippo/workbench.js">&#160;</script> 76 <script type="text/javascript" src="/workbench/js/hippo/workbench.js">&#160;</script>
77 <script type="text/javascript" src="/workbench/js/hippo/container.js">&#160;</script> 77 <script type="text/javascript" src="/workbench/js/hippo/container.js">&#160;</script>
78 <script type="text/javascript" src="/workbench/js/hippo/perspectives.js">&#160;</script> 78 <script type="text/javascript" src="/workbench/js/hippo/perspectives.js">&#160;</script>
79 <script type="text/javascript" src="/workbench/js/hippo/views.js">&#160;</script> 79 <script type="text/javascript" src="/workbench/js/hippo/views.js">&#160;</script>
80 <script type="text/javascript" src="/workbench/js/hippo/keyboard.js">&#160;</script> 80 <script type="text/javascript" src="/workbench/js/hippo/keyboard.js">&#160;</script>
81 81
82 <!-- non-standard application source files from xml-configuration --> 82 <!-- non-standard application source files from xml-configuration -->
83 <xsl:apply-templates select="/root/sources[@context='Application']/*"/> 83 <xsl:apply-templates select="/root/sources[@context='Application']/*"/>
84 </scriptpackage> 84 </scriptpackage>
85 85
86 <!-- Load application configuration --> 86 <!-- Load application configuration -->
87 <script type="text/javascript" src="/workbench/js/ApplicationConfiguration.js?{$randomNr}=">&#160;</script> 87 <script type="text/javascript" src="/workbench/js/ApplicationConfiguration.js?{$randomNr}=">&#160;</script>
88 88
89 <script language="javascript" type="text/javascript"> 89 <script language="javascript" type="text/javascript">
90 var documentIsOpen = "false"; 90 var documentIsOpen = "false";
91 function openDocument(state) 91 function openDocument(state)
92 { 92 {
93 documentIsOpen = state; 93 documentIsOpen = state;
94 } 94 }
95 var scheduledTasks = new Array(); 95 var scheduledTasks = new Array();
96 96
97 <xsl:choose> 97 <xsl:choose>
98 <xsl:when test="string-length($editUri) &gt; 0 and ($editType='binary-resource' or $editType='asset')"> 98 <xsl:when test="string-length($editUri) &gt; 0 and ($editType='binary-resource' or $editType='asset')">
99 scheduledTasks[scheduledTasks.length] = {'event':'assetselectSource','arguments':[{key:'url',val:'<xsl:value-of select="$editUri"/>'}]}; 99 scheduledTasks[scheduledTasks.length] = {'event':'assetselectSource','arguments':[{key:'url',val:'<xsl:value-of select="$editUri"/>'}]};
103 </xsl:when> 103 </xsl:when>
104 <xsl:when test="string-length($editUri) &gt; 0 and string-length($editType) = 0"> 104 <xsl:when test="string-length($editUri) &gt; 0 and string-length($editType) = 0">
105 scheduledTasks[scheduledTasks.length] = {'event':'selectSource','arguments':[{key:'url',val:'<xsl:value-of select="$editUri"/>'}]}; 105 scheduledTasks[scheduledTasks.length] = {'event':'selectSource','arguments':[{key:'url',val:'<xsl:value-of select="$editUri"/>'}]};
106 </xsl:when> 106 </xsl:when>
107 </xsl:choose> 107 </xsl:choose>
108 108
109 //temporary workaround for 6.0.3.1 ONLY! 109 //temporary workaround for 6.0.3.1 ONLY!
110 var CMS_PREVIEW_URL = '<xsl:value-of select="$previewURL"/>'; 110 var CMS_PREVIEW_URL = '<xsl:value-of select="$previewURL"/>';
111
112 function removeLocks() {
113 window.top.window.frames['topframe'].fireCMSEvent('beforeUnloadCMS');
114 return true;
115 }
111 </script> 116 </script>
112 </head> 117 </head>
113 118
114 <!-- [DD] locking not supported now --> 119 <body onbeforeunload="return removeLocks();">
115 <!--body onbeforeunload="window.location.href='/login/removeLocks';"-->
116 <body>
117 <!-- start body--> 120 <!-- start body-->
118 <div id="container_main"> 121 <div id="container_main">
119 <!-- start top--> 122 <!-- start top-->
120 <div id="top"> 123 <div id="top">
121 <!-- start top left: logo & navigation--> 124 <!-- start top left: logo & navigation-->
164 onblur="document.getElementById('logoffIcon').style.border='0px';"> 167 onblur="document.getElementById('logoffIcon').style.border='0px';">
165 <img src="/skins/images/logout.gif" alt="log out" width="14" height="9"/> 168 <img src="/skins/images/logout.gif" alt="log out" width="14" height="9"/>
166 </a> 169 </a>
167 </td> 170 </td>
168 </tr> 171 </tr>
169 </table> 172 </table>
170 <form style="padding:0px; margin:0px;"> 173 <form style="padding:0px; margin:0px;">
171 <xsl:attribute name="onsubmit"> 174 <xsl:attribute name="onsubmit">
172 <xsl:text>fireCMSEvent('doSearch',[{key:'reportID',val:'adv'},{key:'simpleSearch',val:document.getElementById('topSimpleSearch').value}]); return false;</xsl:text> 175 <xsl:text>fireCMSEvent('doSearch',[{key:'reportID',val:'adv'},{key:'simpleSearch',val:document.getElementById('topSimpleSearch').value}]); return false;</xsl:text>
173 </xsl:attribute> 176 </xsl:attribute>
174 <table cellspacing="0" cellpadding="0" class="search_top" border="0"> 177 <table cellspacing="0" cellpadding="0" class="search_top" border="0">
175 <tr> 178 <tr>
176 <td id="waitImage" style="visibility:hidden; vertical-align: bottom;"> 179 <td id="waitImage" style="visibility:hidden; vertical-align: bottom;">
177 <img class="unselectable" unselectable="on" src="/skin/images/clock_05.gif" alt="" width="26" height="24"/> 180 <img class="unselectable" unselectable="on" src="/skin/images/clock_05.gif" alt="" width="26" height="24"/>
178 </td> 181 </td>
179 <td>&#160;</td> 182 <td>&#160;</td>
180 <td class="search_top_divider_L"/> 183 <td class="search_top_divider_L"/>
181 <td class="form"><a href="#" onclick="window.open('/workbench/clipboard/external-shelf.html','shelfitems','width=600,height=400,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false;" target="_blank"><img src="/skins/images/icons/16x16/folder_window.gif" border="0"/></a>&#160;</td> 184 <td class="form"><a href="#" onclick="window.open('/workbench/clipboard/external-shelf.html','shelfitems','width=600,height=400,resizable=yes,scrollbars=yes,status=no,toolbar=no');return false;" target="_blank"><img src="/skins/images/icons/16x16/folder_window.gif" border="0"/></a>&#160;</td>
182 <td class="form"> 185 <td class="form">
183 <input type="text" name="topSimpleSearch" id="topSimpleSearch"/> 186 <input type="text" name="topSimpleSearch" id="topSimpleSearch"/>
184 </td> 187 </td>
185 <td class="form">&#160;</td> 188 <td class="form">&#160;</td>
186 <td class="form"> 189 <td class="form">
187 <button type="button" name="search" value="search" id="topSearchBtn"> 190 <button type="button" name="search" value="search" id="topSearchBtn">
188 <xsl:attribute name="onclick"> 191 <xsl:attribute name="onclick">
189 <xsl:text>fireCMSEvent('doSearch',[{key:'reportID',val:'adv'},{key:'simpleSearch',val:document.getElementById('topSimpleSearch').value}])</xsl:text> 192 <xsl:text>fireCMSEvent('doSearch',[{key:'reportID',val:'adv'},{key:'simpleSearch',val:document.getElementById('topSimpleSearch').value}])</xsl:text>
190 </xsl:attribute> 193 </xsl:attribute>
191 <i18n:text>topmenu.toolbar.search</i18n:text> 194 <i18n:text>topmenu.toolbar.search</i18n:text>
192 </button> 195 </button>
193 </td> 196 </td>
194 <td class="search_top_divider_R"/> 197 <td class="search_top_divider_R"/>
195 </tr> 198 </tr>
196 </table> 199 </table>
197 </form> 200 </form>
198 </div> 201 </div>
199 </div> 202 </div>
200 <!-- end top --> 203 <!-- end top -->
201 <!-- start horizontal gray divider & breadcrumb bar--> 204 <!-- start horizontal gray divider & breadcrumb bar-->
202 <div id="top_divider">&#160;</div> 205 <div id="top_divider">&#160;</div>
203 <div unselectable="on" id="top_path_bar" class="unselectable"> 206 <div unselectable="on" id="top_path_bar" class="unselectable">
204 <i18n:text>topmenu.toolbar.home</i18n:text> 207 <i18n:text>topmenu.toolbar.home</i18n:text>
205 <span id="top_breadcrumb" unselectable="on" class="unselectable">&#160;</span> 208 <span id="top_breadcrumb" unselectable="on" class="unselectable">&#160;</span>
206 <span id="search_result_summary" unselectable="on" class="unselectable"></span> 209 <span id="search_result_summary" unselectable="on" class="unselectable"></span>
207 <span id="search_result_extended_summary" unselectable="on" class="unselectable"></span> 210 <span id="search_result_extended_summary" unselectable="on" class="unselectable"></span>
208 </div> 211 </div>
209 <!-- end horizontal gray divider --> 212 <!-- end horizontal gray divider -->
210 </div> 213 </div>
211 </body> 214 </body>
212 </html> 215 </html>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines