Skip to content

Instantly share code, notes, and snippets.

@Salvodif
Created November 28, 2013 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Salvodif/7692798 to your computer and use it in GitHub Desktop.
Save Salvodif/7692798 to your computer and use it in GitHub Desktop.
var value = filter.split ( ':' );
var messageHtml = value [ 1 ] + '<span style="float: right" id="close_button_span"></span>';
Clarks.CC.Status.DisplayNotifyMessage ( "Filtered by: ", messageHtml, Clarks.CC.Status.Priority.Information );
var close_button = document.createElement ( 'a' );
var linkText = document.createTextNode ( "clear" );
close_button.appendChild ( linkText );
close_button.name = 'status_close_button';
var url = document.URL;
close_button.href = url.substring ( 0, url.indexOf ( '?' ) );
close_button.onclick = function ( ) {
SP.UI.Status.removeStatus ( statusID );
statusID = '';
};
var statusBar = document.getElementById ( 'close_button_span' );
statusBar.appendChild ( close_button );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment