Changeset 851 for trunk/web-app/js


Ignore:
Timestamp:
Mar 8, 2011, 6:33:40 PM (14 years ago)
Author:
gav
Message:

Complete and Flag buttons on ajax task entries, first draft.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/js/taskShow.js

    r850 r851  
    88            createContainer.find(':input[name="comment"]').focus();
    99        });
     10        // Register 'submit_*' input button click handlers.
     11        createContainer.find('input[name^="submit_"]').click(function(){
     12            createContainer.find(':input[name="submitAction"]').val(jQuery(this).attr('name'));
     13            createContainer.find('form:first').submit();
     14        });
    1015        // Hijack form submit to use our function.
    11         var eventData = {listContainer:listContainer,createContainer:createContainer, button:button};
     16        var eventData = {listContainer:listContainer, createContainer:createContainer, button:button};
    1217        createContainer.find('form:first').submit(eventData, submitCreateEntryForm);
    1318        // Register the close img click handler.
Note: See TracChangeset for help on using the changeset viewer.