2 var run_pipeline_button_state = function() {
3 var a = $('a.editable.required.editable-empty');
5 $("#run-pipeline-button").addClass("disabled");
8 $("#run-pipeline-button").removeClass("disabled");
12 $.fn.editable.defaults.success = function (response, newValue) {
14 if (tag.hasClass("required")) {
15 if (newValue && newValue.trim() != "") {
16 tag.removeClass("editable-empty");
17 tag.parent().css("background-color", "");
18 tag.parent().prev().css("background-color", "");
21 tag.addClass("editable-empty");
22 tag.parent().css("background-color", "#ffdddd");
23 tag.parent().prev().css("background-color", "#ffdddd");
26 run_pipeline_button_state();
29 $(window).on('load', function() {
30 var a = $('a.editable.required');
31 for (var i = 0; i < a.length; i++) {
33 if (tag.hasClass("editable-empty")) {
34 tag.parent().css("background-color", "#ffdddd");
35 tag.parent().prev().css("background-color", "#ffdddd");
38 tag.parent().css("background-color", "");
39 tag.parent().prev().css("background-color", "");
42 run_pipeline_button_state();