Yes, the bodies still attract. The glass may change the shape of the electric field, but it cannot simply block the electric field.
Any region of space which contains an electric charge has an electric field emanating from it.
If you create a closed surface around this charge, and calculate a surface integral of that electric field, the integral will tell you the quantity of the contained charge.
Take a look here: http://en.wikipedia.org/wiki/Gauss%27s_law
Nothing can change this. There is no "anti electric" shielding material.
Speaking of shielding, even if you place a charge into a conductive metal container, it will not block the field. It will just appear that the container itself has charges on its surface. However, if the container is grounded, then it will appear to block the field.
Bur what happens in that case is simply that the field is concentrated through the ground wire. It has not gone away!