Show Posts
|
Pages: [1]
|
2
|
General Category / Bug Report / Re: easyui 1.4 tab bug!
|
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; }
|
|
|
|