]> source.dussan.org Git - archiva.git/commitdiff
fix generatePom
authorOlivier Lamy <olamy@apache.org>
Fri, 15 Nov 2013 01:39:07 +0000 (01:39 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 15 Nov 2013 01:39:07 +0000 (01:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1542154 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/artifacts-management.js
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html

index cb4d457441f67e613e85fdc922b48b180c9c6fdb..1cce08331b95f58e5a539b531045a16b6136c151 100644 (file)
@@ -48,7 +48,8 @@ define("archiva.artifacts-management",["jquery","i18n","utils","jquery.tmpl","kn
       }
       var url="restServices/archivaUiServices/fileUploadService/save/"+this.repositoryId()+"/"+this.groupId()+"/"+this.artifactId();
       url+="/"+this.version()+"/"+this.packaging();
-      if (this.generatePom()){
+      $.log("this.generatePom():'"+this.generatePom()+"'");
+      if (this.generatePom()==true){
         url+="?generatePom=true";
       }
       $.ajax(url, {
index 89aaaaec126d824b5312d932b9dc208836726af3..11c31a43e701322215512fd5dcdef16b1ee6e964 100644 (file)
       <div class="control-group">
         <label class="control-label" for="generatePom">${$.i18n.prop('fileupload.generatePom')}</label>
         <div class="controls">
-          <input type="checkbox" class="xlarge" data-bind="value: generatePom" id="generatePom" name="generatePom" />
+          <input type="checkbox" class="xlarge" data-bind="checked: generatePom" id="generatePom" name="generatePom" />
           </div>
         </div>
       </div>