make stuff work

This commit is contained in:
johnyma22 2012-11-02 15:15:13 +00:00
parent 3ca450fefc
commit 1d055f2cd4
3 changed files with 11 additions and 1 deletions

View file

@ -125,4 +125,6 @@ td, th {
width:100%; width:100%;
min-height:600px; min-height:600px;
} }
#response{
display:inline;
}

View file

@ -41,7 +41,14 @@ $(document).ready(function () {
socket.emit("restartEtherpad"); socket.emit("restartEtherpad");
}); });
socket.on('saveprogress', function(progress){
$('#response').show();
$('#response').text(progress);
$('#response').fadeOut('slow');
});
socket.emit("load"); // Load the JSON from the server socket.emit("load"); // Load the JSON from the server
}); });

View file

@ -27,6 +27,7 @@
<textarea class="settings"></textarea> <textarea class="settings"></textarea>
<input type="button" class="settingsButton" id="saveSettings" value="Save Settings"> <input type="button" class="settingsButton" id="saveSettings" value="Save Settings">
<input type="button" class="settingsButton" id="restartEtherpad" value="Restart Etherpad"> <input type="button" class="settingsButton" id="restartEtherpad" value="Restart Etherpad">
<div id="response"></div>
</div> </div>
</body> </body>
</html> </html>