Peter Suter avatar Peter Suter committed 8f098b0

Add labels to keyword style batch modify fields

Comments (0)

Files changed (2)

trac/htdocs/css/report.css

 #batchmod_form fieldset,
 #batchmod_form fieldset input,
 #batchmod_form fieldset select,
+.batchmod_property,
 .batchmod_label {
     font-size: 11px;
 }

trac/htdocs/js/query.js

       var modeSelect = createSelect(inputName + "_mode", batch_list_modes);
       var text1 = createText(inputName, 42);
       var text2 = createText(inputName + "_secondary", 42);
-      
+      var label1 = createLabel(" " + batch_list_modes[0]['name'] + ":",
+                               inputName);
+      var label2 = createLabel(_(" remove:"), inputName + "_secondary");
       td.append(modeSelect);
+      td.append(label1);
       td.append(text1);
       
-      // Only mode 2 ("Add / remove") has a second  text field:
+      // Only mode 2 ("Add / remove") has a second text field:
       $(modeSelect).change(function() {
         if (this.selectedIndex == 2) {
+          td.append(label2);
           td.append(text2);
+          label1.text(_(" add:"));
         } else {
           if (td.has(text2).length) {
             text2.remove();
+            label2.remove();
           }
+          label1.text(" " + batch_list_modes[this.selectedIndex]['name'] +
+                      ":");
         }
       });
     }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.