Ignore:
Timestamp:
2019-03-04T21:57:57+13:00 (5 years ago)
Author:
ak19
Message:

Cleanup stage one: 1. Not calling addFunctionalityToTable() on GPSmapcontainer, and no need for a cutdown addFunctionalityToGPSMap(), since the GPS map editor doesn't use any of the added functionality anyway, going out of its way to set the css to display:hide on all the added functionality (metaNameField, addRowButton and addAllButton). 2. Selecting divs that have attribute contenteditable='true' rather than all elements with .sectionText class to get a list of all the editable elements that will get converted to CKEditors. I think it's only divs that have contenteditable set to true, in which case don't need to look for any and all elements with that attribute and value. 3. Some cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/documentedit_scripts_util.js

    r32852 r32853  
    945945}
    946946
    947 function addFunctionalityToMapGPS(mapGPScontainer)
    948 {
    949    
    950 }
    951 
    952947function addFunctionalityToTable(table)
    953948{
     
    10131008
    10141009    // add metadata field selector
    1015         var metaNameField = createMetadataElementSelector();   
     1010    var metaNameField = createMetadataElementSelector();   
    10161011    table.after(metaNameField);
    10171012    table.metaNameField = metaNameField;
Note: See TracChangeset for help on using the changeset viewer.