Created
November 28, 2013 14:32
-
-
Save Salvodif/7692798 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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