diff --git a/airtime_mvc/public/js/airtime/library/spl.js b/airtime_mvc/public/js/airtime/library/spl.js index 1ce33622d..82999a3eb 100644 --- a/airtime_mvc/public/js/airtime/library/spl.js +++ b/airtime_mvc/public/js/airtime/library/spl.js @@ -262,7 +262,10 @@ var AIRTIME = (function(AIRTIME){ var nameElement = $(this), lastMod = getModified(), type = $('#obj_type').val(); - + //remove any newlines if user somehow snuck them in (easy to do if dragging/dropping text) + nameElement.text(nameElement.text().replace("\n", "")); + + /* --until we decide whether Playlist name should autosave or not url = '/Playlist/set-playlist-name'; $.post(url, @@ -278,6 +281,7 @@ var AIRTIME = (function(AIRTIME){ redrawLib(); } }); + */ } function redrawLib() {