Fix webstream tab change behaviour
This commit is contained in:
parent
d09941dffa
commit
c0372c1745
|
@ -1020,11 +1020,10 @@ var AIRTIME = (function(AIRTIME){
|
||||||
newTab.assignTabClickHandler(function() {
|
newTab.assignTabClickHandler(function() {
|
||||||
if (!$(this).hasClass('active')) {
|
if (!$(this).hasClass('active')) {
|
||||||
newTab.switchTo();
|
newTab.switchTo();
|
||||||
$.post(baseUrl+'playlist/edit', {
|
var type = newTab.contents.find(".obj_type").val();
|
||||||
format: "json",
|
if (type == "playlist" || type == "block") {
|
||||||
id: newTab.pane.find(".obj_id").val(),
|
$.post(baseUrl + 'playlist/edit', { format: "json", id: newTab.contents.find(".obj_id").val(), type: type });
|
||||||
type: newTab.pane.find(".obj_type").val()
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue