|
|
@@ -118,6 +118,14 @@ ${ layout.menubar(section='workflows') }
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+<div class="hueOverlay" data-bind="visible: isLoading">
|
|
|
+ <!--[if lte IE 9]>
|
|
|
+ <img src="/static/art/spinner-big.gif" />
|
|
|
+ <![endif]-->
|
|
|
+ <!--[if !IE]> -->
|
|
|
+ <i class="icon-spinner icon-spin"></i>
|
|
|
+ <!-- <![endif]-->
|
|
|
+</div>
|
|
|
|
|
|
<div id="submit-wf-modal" class="modal hide"></div>
|
|
|
|
|
|
@@ -160,8 +168,9 @@ ${ layout.menubar(section='workflows') }
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
$(document).ready(function () {
|
|
|
var viewModel = {
|
|
|
- availableJobs : ko.observableArray(${ json_jobs | n }),
|
|
|
- chosenJobs : ko.observableArray([])
|
|
|
+ availableJobs : ko.observableArray(${ json_jobs | n }),
|
|
|
+ chosenJobs : ko.observableArray([]),
|
|
|
+ isLoading: ko.observable(false)
|
|
|
};
|
|
|
|
|
|
ko.applyBindings(viewModel);
|
|
|
@@ -241,6 +250,7 @@ ${ layout.menubar(section='workflows') }
|
|
|
});
|
|
|
|
|
|
$("#clone-btn").click(function (e) {
|
|
|
+ viewModel.isLoading(true);
|
|
|
var _this = $(".hueCheckbox[checked='checked']");
|
|
|
var _url = _this.attr("data-clone-url");
|
|
|
$.post(_url, function (data) {
|
|
|
@@ -249,15 +259,20 @@ ${ layout.menubar(section='workflows') }
|
|
|
});
|
|
|
|
|
|
$("#schedule-btn").click(function (e) {
|
|
|
+ viewModel.isLoading(true);
|
|
|
var _this = $(".hueCheckbox[checked='checked']");
|
|
|
var _url = _this.attr("data-schedule-url");
|
|
|
window.location.replace(_url);
|
|
|
});
|
|
|
|
|
|
$("#export-btn").click(function (e) {
|
|
|
+ viewModel.isLoading(true);
|
|
|
var _this = $(".hueCheckbox[checked='checked']");
|
|
|
var _url = _this.attr("data-export-url");
|
|
|
window.location.replace(_url);
|
|
|
+ window.setTimeout(function(){
|
|
|
+ viewModel.isLoading(false);
|
|
|
+ }, 500);
|
|
|
});
|
|
|
|
|
|
var oTable = $("#workflowTable").dataTable({
|