Skip to content

Instantly share code, notes, and snippets.

@mauriciodarocha
Created February 19, 2013 15:04
Show Gist options
  • Save mauriciodarocha/4986659 to your computer and use it in GitHub Desktop.
Save mauriciodarocha/4986659 to your computer and use it in GitHub Desktop.
Conserta a seleção de sku pelo "Label". Faz o on/off funcionar. Para usar coloque dentro de uma função e execute a mesma ao entrar na página de produto.
var _removeUnavaliableStyle = window.removeUnavaliableStyle;
// function override
window.removeUnavaliableStyle = function (selector)
{
// fix on/off label style
if(typeof selector=="undefined")
jQuery(".topic label").removeClass("sku-picked");
_removeUnavaliableStyle(selector);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment