Reduce dependencies, fix broken script
This commit is contained in:
parent
4e34f7b43f
commit
6997d2e314
|
@ -1,7 +1,7 @@
|
|||
$(function(){
|
||||
Discourse.MessageBus.start();
|
||||
Discourse.MessageBus.subscribe("/docker/log", function(message){
|
||||
if(message == "DONE"){
|
||||
if(message === "DONE"){
|
||||
$("button.upgrade").attr("disabled", false);
|
||||
} else {
|
||||
$("#log").append($("<pre>" + message + "<pre>"));
|
||||
|
|
|
@ -29,11 +29,16 @@
|
|||
<h2>Log</h2>
|
||||
<div id="log"></div>
|
||||
<div id="main"></div>
|
||||
|
||||
<%= javascript_include_tag "preload_store" %>
|
||||
<%= javascript_include_tag "locales/#{I18n.locale}" %>
|
||||
<%= javascript_include_tag "vendor" %>
|
||||
<%= javascript_include_tag "application" %>
|
||||
<script>
|
||||
Discourse = {};
|
||||
</script>
|
||||
<%= javascript_include_tag "jquery_include.js" %>
|
||||
<%= javascript_include_tag "message-bus" %>
|
||||
<script>
|
||||
Discourse.MessageBus = window.MessageBus;
|
||||
Discourse.ajax = $.ajax;
|
||||
Discourse.MessageBus.start();
|
||||
</script>
|
||||
<%= javascript_include_tag "docker_manager" %>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue