function
goToTab(subtitle, url, icon) {
// begin author:屈然博 2013-7-12 for:解决firefox 点击一次请求两次的问题
var
progress = $(
"div.messager-progress"
);
if
(progress.length){
return
;}
// begin author:屈然博 2013-7-12 for:解决firefox 点击一次请求两次的问题
rowid=
""
;
$.messager.progress({
text : loading,
interval : 200
});
if
(!$(
'#maintabs'
).tabs(
'exists'
, subtitle)) {
//判断是否进行iframe方式打开tab,默认为href方式
if
(url.indexOf(
'isHref'
) != -1){
$(
'#maintabs'
).tabs(
'add'
, {
title : subtitle,
href : url,
closable :
true
,
icon : icon
});
}
else
{
$(
'#maintabs'
).tabs(
'add'
, {
title : subtitle,
content :
'<iframe src="'
+ url +
'" frameborder="0" style="border:0;width:100%;height:99.4%;"></iframe>'
,
closable :
true
,
icon : icon
});
}
}
else
{
$(
'#maintabs'
).tabs(
'select'
, subtitle);
if
(url.indexOf(
'isHref'
) != -1){
$(
'#maintabs'
).tabs(
'update'
, {
tab : $(
'#maintabs'
).tabs(
'getSelected'
),
options : {
href : url
}
});
}
else
{
$(
'#maintabs'
).tabs(
'update'
, {
tab : $(
'#maintabs'
).tabs(
'getSelected'
),
options : {
content :
'<iframe src="'
+ url +
'" frameborder="0" style="border:0;width:100%;height:99.4%;"></iframe>'
}
});
}
$.messager.progress(
'close'
);
}
// $('#maintabs').tabs('select',subtitle);
tabClose();
}