Re: Hidden Application
Posted by
Pedro on
Dec 02, 2013; 7:25pm
URL: https://support.nabble.com/Hidden-Application-tp7587027p7588431.html
Please, remove
this override, and add this one:
<override_macro name="javascript_library" requires="servlet">
<n.overridden/>
<n.comment.>
Adding "Back" Button.
</n.comment.>
<n.compress.>
$( document ).ready(function() {
var title = document.title;
if(title.search( 'Edit Personal Information' ) >= 0 )
profileLink();
if(title.search( 'Change Avatar' ) >= 0 )
profileLink();
if(title.search( 'Advanced Settings' ) >= 0 )
profileLink();
if(title.search( 'Remove Your Account' ) >= 0 )
profileLink();
if(title.search( ' Edit Signature' ) >= 0 )
profileLink();
if(title.search( 'Profile of' ) >= 0 )
backButton ();
if(title.search( 'Stars in' ) >= 0 )
backButton ();
function profileLink () {
$('.breadcrumbs span').html("<a href='/template/NamlServlet.jtp?macro=user_profile' style='display:inline !important;'>Back</a>");
}
function backButton () {
$('.breadcrumbs span').html("<a href='javascript:void(0)' onclick='history.go(-1);' style='display:inline !important;'>Back</a>");
}
});
</n.compress.>
</override_macro>