From 69da2fa07e54a36b5ef13c9921f0a24e0d992565 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Wed, 4 Nov 2015 09:45:16 -0500 Subject: [PATCH] Style tweaks --- airtime_mvc/public/css/playlist_builder.css | 1 + airtime_mvc/public/css/styles.css | 1 + airtime_mvc/public/js/airtime/library/podcast.js | 14 +++++++------- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/airtime_mvc/public/css/playlist_builder.css b/airtime_mvc/public/css/playlist_builder.css index ecbc60d52..85e1c1ec8 100644 --- a/airtime_mvc/public/css/playlist_builder.css +++ b/airtime_mvc/public/css/playlist_builder.css @@ -45,6 +45,7 @@ .playlist_editor input, .playlist_editor textarea { width: 200px; + height: 70px; box-sizing: border-box; } diff --git a/airtime_mvc/public/css/styles.css b/airtime_mvc/public/css/styles.css index 4f34e70f7..ae29e39ce 100644 --- a/airtime_mvc/public/css/styles.css +++ b/airtime_mvc/public/css/styles.css @@ -1709,6 +1709,7 @@ h2#scheduled_playlist_name span { .simple-formblock dd textarea { box-sizing: border-box; + height: 70px; } .simple-formblock h2 { diff --git a/airtime_mvc/public/js/airtime/library/podcast.js b/airtime_mvc/public/js/airtime/library/podcast.js index 4bb9e0a04..7a0b00595 100644 --- a/airtime_mvc/public/js/airtime/library/podcast.js +++ b/airtime_mvc/public/js/airtime/library/podcast.js @@ -181,7 +181,7 @@ var AIRTIME = (function (AIRTIME) { self._updatePodcast(); }; - $scope.deleteSelectedEpisodes = function () { + self.deleteSelectedEpisodes = function () { var episodes = self.episodeTable.getSelectedRows(); jQuery.each(episodes, function () { $http.delete(endpoint + $scope.podcast.id + '/episodes/' + this.id + '?csrf_token=' + $scope.csrf) @@ -191,7 +191,7 @@ var AIRTIME = (function (AIRTIME) { }); }; - $scope.openSelectedTabEditors = function () { + self.openSelectedTabEditors = function () { var episodes = self.episodeTable.getSelectedRows(); $.each(episodes, function () { var uid = AIRTIME.library.MediaTypeStringEnum.FILE + "_" + this.file_id; @@ -215,7 +215,7 @@ var AIRTIME = (function (AIRTIME) { * @private */ StationPodcastController.prototype._initTable = function() { - var $scope = this.$scope, + var self = this, $scope = this.$scope, buttons = { editBtn: { title : $.i18n._('Edit Metadata'), @@ -223,8 +223,8 @@ var AIRTIME = (function (AIRTIME) { extraBtnClass : '', elementId : '', eventHandlers : { - click: function(e) { - $scope.openSelectedTabEditors(); + click: function () { + self.openSelectedTabEditors(); } } }, @@ -234,8 +234,8 @@ var AIRTIME = (function (AIRTIME) { extraBtnClass : 'btn-danger', elementId : '', eventHandlers : { - click: function(e) { - $scope.deleteSelectedEpisodes(); + click: function () { + self.deleteSelectedEpisodes(); } } }