include gemerated smartblock/playlist name in success message

This commit is contained in:
r 2019-02-23 01:55:38 -06:00
parent d2167f6f2c
commit b6e554edfe
4 changed files with 13 additions and 5 deletions

View File

@ -27,7 +27,7 @@
<button ng-click="createSmartblock()" class="btn" type="button" name="smartblock">
<?php echo _("Generate Smartblock and Playlist") ?>
</button>
<div class='pc-sb-success success' style='display:none'></span></div>
<div class='pc-sb-success success' style='display:none'>&quot;{{podcast.title}}&quot; <br> <?php echo _("Smartblock and Playlist generated") ?></span></div>
</div>
</div>
</form>
@ -46,6 +46,6 @@
<?php echo _("Save") ?>
</button>
</div>
<div class='success' style='display:none'></div>
<div class='pc-save-success success' style='display:none'></div>
</div>
</div>

View File

@ -1990,6 +1990,10 @@ div.success{
-moz-box-sizing: border-box;
box-sizing: border-box;
}
div.success.pc-sb-success {
height: auto;
text-align: left;
}
div.errors, span.errors{
color:#902d2d;
@ -4157,7 +4161,12 @@ li .ui-state-hover {
box-sizing: border-box;
text-align: left;
}
.editor_pane_wrapper .podcast-metadata-row:last-child {
align-items: flex-start;
}
.editor_pane_wrapper .podcast-metadata-row:last-child label {
padding-top: 5px;
}
.podcast-url {
white-space: nowrap;
overflow: hidden;

View File

@ -11,7 +11,7 @@ $(document).ready(function() {
//});
//this statement tells the browser to fade out any success message after 5 seconds
setTimeout(function(){$(".success").fadeOut("slow", function(){$(this).empty()});}, 5000);
setTimeout(function(){$(".success").fadeOut("slow")}, 5000);
});
/*

View File

@ -71,7 +71,6 @@ var AIRTIME = (function (AIRTIME) {
function() {
// show success message
var successMsg = $('.active-tab .pc-sb-success')
successMsg.text($.i18n._('Smartblock and playlist generated'));
successMsg.show("fast");
setTimeout(function(){
successMsg.hide("fast");