Ignore:
Timestamp:
2013-09-10T10:39:37+12:00 (11 years ago)
Author:
sjm84
Message:

Some more features added to the usertracker and hooking up the page to the editenabled variable

Location:
main/trunk/model-sites-dev/pei-jones/collect/photos
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/pei-jones/collect/photos/etc/collectionConfig.xml

    r28150 r28246  
    309309                                    </xsl:text>
    310310                                        <xsl:choose>
    311                                             <xsl:when test="/page/pageRequest/userInformation/@username">
     311                                            <xsl:when test="/page/pageRequest/userInformation/@username and /page/pageRequest/userInformation/@editEnabled = 'true'">
    312312                                                <xsl:text disable-output-escaping="yes">editable: true,</xsl:text>
    313313                                            </xsl:when>
  • main/trunk/model-sites-dev/pei-jones/collect/photos/script/image-annotator/js/jquery.annotate2.js

    r28055 r28246  
    175175    **/
    176176    $.fn.annotateImage.add = function(image) {
    177        
    178177        console.log("image mode = " + image.mode);
    179178        if (image.mode == 'view') {
    180179            image.mode = 'edit';
     180           
     181            gs.userInformation.currentAction = "editingNote";
    181182
    182183            // Create/prepare the editable note elements
     
    196197
    197198        ok.click(function() {
    198                        
     199            gs.userInformation.currentAction = "savingNote";
    199200            var form = $('#image-annotate-edit-form form');
    200201            var text = $('#image-annotate-text').val();
Note: See TracChangeset for help on using the changeset viewer.