#842: On BatchModify form workflow controls should be disabled until action is
selected
------------------------+--------------------------
  Reporter:  rjollos    |      Owner:  nobody
      Type:  defect     |     Status:  new
  Priority:  major      |  Milestone:  Release 9
 Component:  ui design  |    Version:
Resolution:             |   Keywords:  batch-modify
------------------------+--------------------------

Comment (by rjollos):

 The patch looks good. There are a few minor things that could be
 optimized:
  * `jQuery` should be used in the outer scope to avoid conflicts with
 other !JavaScript libraries, but within
 `jQuery(document).ready(function($) { ...` the symbol `$` can be used in
 place of `jQuery` without needing to worry about conflicts. This is
 because `$` is passed as an argument and will only be visible in the scope
 of the function.
  * `$('#batchmod_action').find('input[name=action]')` can be replaced by
 `$('#batchmod_action input[name=action]')`.
  * We can use a function to avoid code duplication.

 I've proposed a patch for Trac that also attempts to reduce some code
 duplication between the `batch_modify.html` and `ticket.html`. I'll commit
 after getting feedback from the other Trac devs, and then make similar
 changes to Bloodhound.

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/842#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Reply via email to