From 431b3c2620cbea9a3b70cd80662a4fe1e1d9b7b2 Mon Sep 17 00:00:00 2001 From: William Toohey Date: Wed, 10 Feb 2016 01:01:09 +1000 Subject: [PATCH] Minor editor fixes --- src/js/HuesEditor.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/js/HuesEditor.js b/src/js/HuesEditor.js index 916d158..1431a42 100644 --- a/src/js/HuesEditor.js +++ b/src/js/HuesEditor.js @@ -355,6 +355,10 @@ HuesEditor.prototype.newSong = function(song) { this.newSongBtn.classList.remove("glow"); this.fromSongBtn.classList.remove("glow"); + // Enable title edits + this.title.disabled = false; + this.source.disabled = false; + this.clearUndoRedo(); this.song = song; @@ -542,8 +546,10 @@ HuesEditor.prototype.uiCreateInfo = function() { this.title = this.createTextInput("Title:", "edit-title", "Song name", info); this.title.oninput = songUpdate.bind(this, "title"); + this.title.disabled = true; this.source = this.createTextInput("Link: ", "edit-source", "Source link", info); this.source.oninput = songUpdate.bind(this, "source"); + this.source.disabled = true; }; HuesEditor.prototype.uiCreateImport = function() { @@ -723,7 +729,7 @@ HuesEditor.prototype.uiCreateSingleEditor = function(title, soundName, rhythmNam let fileInput = document.createElement("input"); fileInput.type ="file"; - fileInput.accept="audio/mpeg3"; + fileInput.accept="audio/mp3"; fileInput.multiple = false; fileInput.onchange = this.loadAudio.bind(this, container); let load = this.createButton("Load " + title.replace(/ /g,""), rightHeader);