[FIX] Display placeholder on IE9.

The hack was not working since we migrate jQuery 1.8 to 1.9 because $.browser has been removed.

bzr revid: jke@openerp.com-20140318130655-yqgj851enc0293hr
This commit is contained in:
Kersten Jeremy 2014-03-18 14:06:55 +01:00
parent 541a5d3f82
commit af8147fc95
1 changed files with 1 additions and 1 deletions

View File

@ -2253,7 +2253,7 @@ instance.web.form.ReinitializeFieldMixin = _.extend({}, instance.web.form.Reini
/**
Some hack to make placeholders work in ie9.
*/
if ($.browser.msie && $.browser.version === "9.0") {
if (!('placeholder' in document.createElement('input'))) {
document.addEventListener("DOMNodeInserted",function(event){
var nodename = event.target.nodeName.toLowerCase();
if ( nodename === "input" || nodename == "textarea" ) {