Changeset 247
- Timestamp:
- 01/09/2014 08:38:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/templates/site.html
r242 r247 261 261 262 262 <!--! Trac notifications --> 263 <script py:if="project_slug == 'core' and ticket and ticket.exists"> 264 if ( 'notifications' in wpTrac ) { 265 jQuery(document).ready( function( $ ) { 266 var endpoint = '${wporg_endpoint}', ticket = ${ticket.id}; 267 $.ajax({ 268 url: endpoint + '?trac-notifications=' + ticket, 269 xhrFields: { withCredentials: true } 270 }).success( function( data ) { 271 if ( data.success ) { 272 $( '#propertyform' ).before( data.data['notifications-box'] ); 273 wpTrac.notifications.init( endpoint, ticket ); 274 } 263 <py:if test="project_slug == 'core'"> 264 <script> 265 jQuery( wpTrac.hide_cc_field ); 266 </script> 267 <script py:if="ticket and ticket.exists"> 268 if ( 'notifications' in wpTrac ) { 269 jQuery(document).ready( function( $ ) { 270 var endpoint = '${wporg_endpoint}', ticket = ${ticket.id}; 271 $.ajax({ 272 url: endpoint + '?trac-notifications=' + ticket, 273 xhrFields: { withCredentials: true } 274 }).success( function( data ) { 275 if ( data.success ) { 276 $( '#propertyform' ).before( data.data['notifications-box'] ); 277 wpTrac.notifications.init( endpoint, ticket ); 278 } 279 }); 275 280 }); 276 } );277 }278 </ script>281 } 282 </script> 283 </py:if> 279 284 </body> 280 285
Note: See TracChangeset
for help on using the changeset viewer.