Fix webstream tab change behaviour

This commit is contained in:
Duncan Sommerville 2015-09-30 12:07:31 -04:00
parent d09941dffa
commit c0372c1745
1 changed files with 4 additions and 5 deletions

View File

@ -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 });
}
}
});