3 var run_pipeline_button_state = function() {
4 var a = $('a.editable.required.editable-empty');
6 $("#run-pipeline-button").addClass("disabled");
9 $("#run-pipeline-button").removeClass("disabled");
13 $.fn.editable.defaults.success = function (response, newValue) {
15 if (tag.hasClass("required")) {
16 if (newValue && newValue.trim() != "") {
17 tag.removeClass("editable-empty");
18 tag.parent().css("background-color", "");
19 tag.parent().prev().css("background-color", "");
22 tag.addClass("editable-empty");
23 tag.parent().css("background-color", "#ffdddd");
24 tag.parent().prev().css("background-color", "#ffdddd");
27 run_pipeline_button_state();
30 $(window).on('load', function() {
31 var a = $('a.editable.required');
32 for (var i = 0; i < a.length; i++) {
34 if (tag.hasClass("editable-empty")) {
35 tag.parent().css("background-color", "#ffdddd");
36 tag.parent().prev().css("background-color", "#ffdddd");
39 tag.parent().css("background-color", "");
40 tag.parent().prev().css("background-color", "");
43 run_pipeline_button_state();