/*
 * Copyright (c) 2013 Haulmont Technology Ltd. All Rights Reserved.
 * Haulmont Technology proprietary and confidential.
 * Use is subject to license terms.
 */

package com.haulmont.cuba.web.toolkit.ui.client.sys;

import com.google.gwt.dom.client.Element;

/**
 * @author artamonov
 * @version $Id$
 */
public class ToolsImplIE extends ToolsImpl {

    @Override
    protected native void setTextSelectionEnable(Element el) /*-{
        el.onselectstart = null;
    }-*/;

    @Override
    protected native void setTextSelectionDisable(Element el) /*-{
        el.onselectstart = this.@com.haulmont.cuba.web.toolkit.ui.client.sys.ToolsImpl::falseFunction;
    }-*/;
}
@@ -430,32 +430,46 @@
 /*-%7B%0A        el.
+setAttribute('
 onselectstart = 
@@ -469,15 +469,16 @@
 tart
- =
+',
  null
+)
 ;%0A  
@@ -578,16 +578,30 @@
      el.
+setAttribute('
 onselect
@@ -609,10 +609,10 @@
 tart
- =
+',
  thi
@@ -682,16 +682,17 @@
 Function
+)
 ;%0A    %7D-

Fix IE8 textSelection enable #PL-2278