Adding attr.class on span when action is disabled