Frontend tweaks + fixes

This commit is contained in:
Duncan Sommerville 2015-11-12 19:29:55 -05:00
parent 69109e171c
commit 0514a5d789
4 changed files with 6 additions and 5 deletions

View File

@ -229,7 +229,7 @@ a.badge:hover {
line-height: 18px; line-height: 18px;
} }
.btn-small [class^="icon-"] { .btn-small [class^="icon-"] {
margin-top: 0; margin-top: -1px;
} }
#pl_edit.btn.btn-small { #pl_edit.btn.btn-small {
margin-left: 10px; margin-left: 10px;

View File

@ -349,7 +349,7 @@ var AIRTIME = (function (AIRTIME) {
* @private * @private
*/ */
PodcastEpisodeTable.prototype._datatablesCheckboxDataDelegate = function(rowData, callType, dataToSave) { PodcastEpisodeTable.prototype._datatablesCheckboxDataDelegate = function(rowData, callType, dataToSave) {
var defaultIcon = "<span class='icon-white icon-import'></span>", var defaultIcon = "<span class='icon icon-circle-arrow-down'></span>",
importIcon = "<span class='sp-checked-icon checked-icon imported-flag'></span>", importIcon = "<span class='sp-checked-icon checked-icon imported-flag'></span>",
pendingIcon = "<span class='loading-icon'></span>"; pendingIcon = "<span class='loading-icon'></span>";
if (this.config.hideIngestCheckboxes && rowData.ingested && rowData.ingested != 0) { if (this.config.hideIngestCheckboxes && rowData.ingested && rowData.ingested != 0) {

View File

@ -788,7 +788,7 @@ var AIRTIME = (function(AIRTIME){
setTimeout(function(){$status.fadeOut("slow", function(){$status.empty()})}, 5000); setTimeout(function(){$status.fadeOut("slow", function(){$status.empty()})}, 5000);
$pl.find(".title_obj_name").val(name); $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"); var $ws_id = $(".active-tab .obj_id");
$ws_id.attr("value", json.streamId); $ws_id.attr("value", json.streamId);

View File

@ -141,7 +141,7 @@ var AIRTIME = (function(AIRTIME){
* *
* @private * @private
*/ */
Tab.prototype._destroy = function () {} Tab.prototype._destroy = function () {};
/** /**
* Assign the given function f as the click handler for the tab * 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 // 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 // It's better to call this here so we don't have to call it in multiple places
mod.onResize(); mod.onResize();
// AIRTIME.library.fnRedraw(); return this; // For chaining
}; };
/** /**
@ -232,6 +232,7 @@ var AIRTIME = (function(AIRTIME){
*/ */
Tab.prototype.setName = function(name) { Tab.prototype.setName = function(name) {
this.tab.find(".tab-name").text(name); this.tab.find(".tab-name").text(name);
return this; // For chaining
}; };
/** /**