Posts

Showing posts from February, 2016

Overwrite sp.ui.listsearchbox.js to fix the SharePoint 2013 WAG issue

Image
I conducted a WAG testing in SharePoint 2013 site using Google Chrome extension http://wave.webaim.org/extension/.  The SharePoint site has some WAG issues and most of them are related to missing "Alt" attribute in the out of box image icon which created by SharePoint itself. Most of them can be resolved by using jQuery to update the icon's HTML code directly. But I found one issue is exceptional that the inline search box icon within the List view document library WebPart can't be fixed by updating its HTML code directly.  Bellow is the screenshot and icon's HTML code. After I research the SharePoint Out Of box JavaScript, and I found out the "sp.ui.listsearchbox.js" composing the HTML code for the List view search box.  "   $1C_3: function(c) {         var a = "<div id='{0}' class='ms-InlineSearch-Outline-Baseline ms-InlineSearch-Outline-Empty'><input id='{1}' title='{2}' class='