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() {
|
||||
if (!$(this).hasClass('active')) {
|
||||
newTab.switchTo();
|
||||
$.post(baseUrl+'playlist/edit', {
|
||||
format: "json",
|
||||
id: newTab.pane.find(".obj_id").val(),
|
||||
type: newTab.pane.find(".obj_type").val()
|
||||
});
|
||||
var type = newTab.contents.find(".obj_type").val();
|
||||
if (type == "playlist" || type == "block") {
|
||||
$.post(baseUrl + 'playlist/edit', { format: "json", id: newTab.contents.find(".obj_id").val(), type: type });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue