Ignore:
Timestamp:
2019-05-17T18:19:41+12:00 (5 years ago)
Author:
wy59
Message:

First phase of autocomplete list for map shape descriptions/labels. This commit associates an autocomplete list per map, not per whole page. But it does create the autocomplete Labels List from saved shape descriptions (on LOADing from archives) and then expands that list dynamically further with any labels entered (for a map) by the user, which last happens onblur of the description input field. The autocomplete Labels List does not allow duplicates, though this is not yet at its most efficient. At the moment the list is not expanded alphabetically yet, though this was an option we considered and will be using hereafter. Rather at present the list expands with new items added to the head first, with unshift.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl

    r33088 r33095  
    277277                        <div id = "FourthRow">
    278278                            <p>Label Text:
    279                                 <input type="text" id="description-{@nodeID}" value="" />   
     279                                <input type="text" class="description" id="description-{@nodeID}" value="" />             
    280280                            </p>
    281281                        </div>
Note: See TracChangeset for help on using the changeset viewer.