All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scripts.gadget-fields-min.js Maven / Gradle / Ivy

AJS.$.namespace("AJS.gadget.sonar.fields");AJS.gadget.sonar.fields.waitImage=function(){var A="";if(WAIT_IMAGE_SRC!==undefined){A=WAIT_IMAGE_SRC}return AJS.$("").attr({id:"waitingImage",border:0,src:A}).addClass("waiting-image")};AJS.gadget.sonar.fields.isConfigured=function(){return{userpref:"isConfigured",type:"hidden",value:"true"}};AJS.gadget.sonar.fields.titleRequired=function(){return{userpref:"titleRequired",type:"hidden",value:"true"}};AJS.gadget.sonar.fields.generateServerAndProjectPickerFields=function(E,C,D,B){var A=AJS.sonar.utils.randomNumber();return[{userpref:C,label:E.getMsg("sonar.gadget.common.server.label"),description:E.getMsg("sonar.gadget.common.server.description"),id:"sonar_server_picker_"+A,type:"callbackBuilder",callback:function(G){var F=AJS.$("").attr({name:C,type:"text"}).val(E.getPref(C)).addClass("text");F.blur(function(){var H=AJS.$("#sonar_project_picker_"+A+" select");AJS.gadget.sonar.accessor.populateProjectSelectorWithProjects(E,F.val(),H,"",B)});G.append(F).append(AJS.$("").addClass("description").text(E.getMsg("sonar.gadget.common.server.description")))}},{userpref:D,label:E.getMsg("sonar.gadget.common.project.label"),description:E.getMsg("sonar.gadget.common.project.description"),id:"sonar_project_picker_"+A,type:"callbackBuilder",callback:function(G){var F=AJS.$("