EasyUI Forum

General Category => Bug Report => Topic started by: wh19890605 on August 04, 2014, 04:33:18 AM



Title: easyui 1.4 tab bug!
Post by: wh19890605 on August 04, 2014, 04:33:18 AM
Tabs use of content when loading html or js js will perform two times.


Title: Re: easyui 1.4 tab bug!
Post by: jarry on August 04, 2014, 04:54:32 AM
Please provide an example to demonstrate your issue.


Title: Re: easyui 1.4 tab bug!
Post by: wh19890605 on August 04, 2014, 05:23:53 AM
function addTab(title, url, iconCls) {

            iconCls = iconCls || 'icon-home';

            if ($('#tabs').tabs('exists', title)) {
                $('#tabs').tabs('select', title);
            } else {
                $('#tabs').tabs('add', {
                    title: title,
                    content: createFrame(url),
                    closable: true,
                    iconCls: iconCls
                });
            }

        }

   
        function createFrame(url) {
            var s = '<iframe scrolling="auto" frameborder="0"  src="' + url + '" style="width:100%;height:99.5%;"></iframe>';
            return s;
        }


Title: Re: easyui 1.4 tab bug!
Post by: stworthy on August 04, 2014, 06:34:24 AM
Please run the attached example 'test.zip'. The javascript code runs only once.


Title: Re: easyui 1.4 tab bug!
Post by: wh19890605 on August 04, 2014, 05:15:25 PM
The javascript code run two times on IE11


Title: Re: easyui 1.4 tab bug!
Post by: stworthy on August 05, 2014, 01:29:33 AM
Please try to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4-patch.zip.