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() { 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() }
});
} }
}); });