Correct sending emergency command on UI refresh --> #3

This commit is contained in:
BrokenFire 2017-07-26 17:41:19 +02:00
parent 9d1d83de7b
commit bf6281897f
3 changed files with 4 additions and 3 deletions

View File

@ -40,9 +40,10 @@ $(function() {
}), }),
contentType: "application/json; charset=UTF-8", contentType: "application/json; charset=UTF-8",
success: function (data,status) { success: function (data,status) {
self.confirmation.modal("hide");
} }
}); });
self.confirmation.modal("hide");
}; };

View File

@ -15,7 +15,7 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true">{{ _('Cancel') }}</a> <a href="#" class="btn" data-dismiss="modal" aria-hidden="true">{{ _('Cancel') }}</a>
<a href="#" class="btn btn-danger" data-bind="click: sendCommand()">{{ _('Proceed') }}</a> <a href="#" class="btn btn-danger" data-bind="click: sendCommand">{{ _('Proceed') }}</a>
</div> </div>
</div> </div>

View File

@ -14,7 +14,7 @@ plugin_package = "octoprint_simpleemergencystop"
plugin_name = "OctoPrint-SimpleEmergencyStop" plugin_name = "OctoPrint-SimpleEmergencyStop"
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.1.12" plugin_version = "0.1.2"
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module # module