From 0514a5d789acf55682e3a06bea860eea2054522f Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Thu, 12 Nov 2015 19:29:55 -0500 Subject: [PATCH] Frontend tweaks + fixes --- airtime_mvc/public/css/bootstrap.css | 2 +- airtime_mvc/public/js/airtime/library/podcast.js | 2 +- airtime_mvc/public/js/airtime/library/spl.js | 2 +- airtime_mvc/public/js/airtime/showbuilder/tabs.js | 5 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/airtime_mvc/public/css/bootstrap.css b/airtime_mvc/public/css/bootstrap.css index 6024b743a..92c6ce5bc 100644 --- a/airtime_mvc/public/css/bootstrap.css +++ b/airtime_mvc/public/css/bootstrap.css @@ -229,7 +229,7 @@ a.badge:hover { line-height: 18px; } .btn-small [class^="icon-"] { - margin-top: 0; + margin-top: -1px; } #pl_edit.btn.btn-small { margin-left: 10px; diff --git a/airtime_mvc/public/js/airtime/library/podcast.js b/airtime_mvc/public/js/airtime/library/podcast.js index 32f1b10df..ea4eb2b04 100644 --- a/airtime_mvc/public/js/airtime/library/podcast.js +++ b/airtime_mvc/public/js/airtime/library/podcast.js @@ -349,7 +349,7 @@ var AIRTIME = (function (AIRTIME) { * @private */ PodcastEpisodeTable.prototype._datatablesCheckboxDataDelegate = function(rowData, callType, dataToSave) { - var defaultIcon = "", + var defaultIcon = "", importIcon = "", pendingIcon = ""; if (this.config.hideIngestCheckboxes && rowData.ingested && rowData.ingested != 0) { diff --git a/airtime_mvc/public/js/airtime/library/spl.js b/airtime_mvc/public/js/airtime/library/spl.js index 64912571f..329e660f7 100644 --- a/airtime_mvc/public/js/airtime/library/spl.js +++ b/airtime_mvc/public/js/airtime/library/spl.js @@ -788,7 +788,7 @@ var AIRTIME = (function(AIRTIME){ setTimeout(function(){$status.fadeOut("slow", function(){$status.empty()})}, 5000); $pl.find(".title_obj_name").val(name); - AIRTIME.tabs.getActiveTab().setName(json.name); + AIRTIME.tabs.getActiveTab().setName(json.name).close(); var $ws_id = $(".active-tab .obj_id"); $ws_id.attr("value", json.streamId); diff --git a/airtime_mvc/public/js/airtime/showbuilder/tabs.js b/airtime_mvc/public/js/airtime/showbuilder/tabs.js index af6eb8b64..6e0b0bd08 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/tabs.js +++ b/airtime_mvc/public/js/airtime/showbuilder/tabs.js @@ -141,7 +141,7 @@ var AIRTIME = (function(AIRTIME){ * * @private */ - Tab.prototype._destroy = function () {} + Tab.prototype._destroy = function () {}; /** * Assign the given function f as the click handler for the tab @@ -196,7 +196,7 @@ var AIRTIME = (function(AIRTIME){ // In case we're adding a tab that wraps to the next row // It's better to call this here so we don't have to call it in multiple places mod.onResize(); - // AIRTIME.library.fnRedraw(); + return this; // For chaining }; /** @@ -232,6 +232,7 @@ var AIRTIME = (function(AIRTIME){ */ Tab.prototype.setName = function(name) { this.tab.find(".tab-name").text(name); + return this; // For chaining }; /**