Ignore:
Timestamp:
2012-02-13T14:08:47+13:00 (12 years ago)
Author:
papitha
Message:

jQuery-File-Upload added

Location:
main/trunk/model-cols-dev/peijones/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-cols-dev/peijones/js/annotator/pkg/annotator-full.min.js

    r24948 r25075  
    639639
    640640            var rangeString = u.ranges[0].startOffset + "_" + u.ranges[0].endOffset;
    641                        
     641           
     642            /*
    642643            var found = false;
    643644            for(var i = 0; i < gs.annotationArray.keys.length; i++){if(gs.annotationArray.keys[i] == rangeString){found = true; break;}}
     
    649650            gs.annotationArray[rangeString] = u;
    650651            console.log("(setup) Adding " + u.quote + ", " + u.text + ", " + u.tags + " to " + rangeString);
     652            showRebuildOption();
     653            */
    651654            return u
    652655        };
     
    659662            var w, v, y, x;
    660663            x = u.highlights;
    661            
     664       
    662665            for (v = 0, y = x.length; v < y; v++) {
    663666                w = x[v];
     
    666669           
    667670            var rangeString = u.ranges[0].startOffset + "_" + u.ranges[0].endOffset;
    668             gs.toDeleteArray[rangeString] = gs.annotationArray[rangeString];
     671            gs.toDeleteArray[rangeString] = u;
    669672            gs.toDeleteArray.keys.push(rangeString);
    670673            gs.annotationArray[rangeString] = null;
    671            
     674            showRebuildOption();
    672675            this.publish("annotationDeleted", [u]);
    673676            return u
     
    15931596            gs.annotationArray[rangeString] = u;
    15941597            console.log("(setup) Adding " + u.quote + ", " + u.text + ", " + u.tags + " to " + rangeString);
     1598            showRebuildOption();
    15951599            return h(u.highlights).data("annotation", u)
    15961600        };
     
    20662070                })
    20672071            }
     2072            /*
    20682073            if (this.options.showEditPermissionsCheckbox === true) {
    20692074                this.annotator.editor.addField({
     
    20742079                })
    20752080            }
     2081            */
     2082            console.log(this.annotator.editor);
    20762083            this.annotator.viewer.addField({
    20772084                load: this.updateViewer
  • main/trunk/model-cols-dev/peijones/js/documentmaker/PhotoNotes-1.5.js

    r24823 r25075  
    11
    2 
    3 /*********************************************************/
    42/*** Photo Notes Container *******************************/
    5 /*********************************************************/
     3
    64function PhotoNoteContainer(element, config)
    75{
     
    7977};
    8078
    81 
    82 
    83 /*********************************************************/
    8479/*** Photo Note ******************************************/
    85 /*********************************************************/
     80
    8681function PhotoNote(text,id,rect)
    8782{
     
    410405            {
    411406                this.maxRight = currentNote.container.element.offsetWidth;
    412                 this.maxBottom = currentNote.container.element.offsetHeight - 3;
     407                this.maxBottom = currentNote.container.element.offsetHeight + $("#noZoom").position().top - 3;
    413408                return true;
    414409            }
     
    443438        {
    444439            currentNote.rect.left = parseInt(this.element.style.left);
    445             currentNote.rect.top = parseInt(this.element.style.top);
     440            currentNote.rect.top = parseInt(this.element.style.top) - $("#noZoom").position().top;
    446441            currentNote.rect.width = parseInt(this.element.style.width);
    447442            currentNote.rect.height = parseInt(this.element.style.height);
     
    467462    /* outer most box */
    468463    this.gui.ElementRect.style.left  = this.rect.left + 'px';
    469     this.gui.ElementRect.style.top  = this.rect.top + 'px';
     464    this.gui.ElementRect.style.top  = this.rect.top + $("#noZoom").position().top + 'px';
    470465    this.gui.ElementRect.style.width  = this.rect.width + 'px';
    471466    this.gui.ElementRect.style.height  = this.rect.height + 'px';
     
    484479 
    485480    this.gui.ElementNote.style.left  = this.rect.left + this.XOffset + 'px';
    486     this.gui.ElementNote.style.top  = this.rect.top + this.YOffset + this.rect.height + 'px';
     481    this.gui.ElementNote.style.top  = this.rect.top + this.YOffset + this.rect.height + $("#noZoom").position().top + 'px';
    487482   
    488483}
     
    626621        minWidth: 10, minHeight: 10,     // Minimum pixel size of elements.
    627622        minLeft: 0, maxRight: 9999,      // Bounding box area.
    628         minTop: 0, maxBottom: 9999,
     623        minTop: $("#noZoom").position().top, maxBottom: 9999,
    629624        zIndex: 1,                       // The highest Z-Index yet allocated.
    630625        mouseX: 0, mouseY: 0,            // Current mouse position, recorded live.
     
    696691        // Record element attributes for mouseMove().
    697692        elmX = parseInt(element.style.left);
    698         elmY = parseInt(element.style.top);
     693        elmY = parseInt(element.style.top + $("#noZoom").position().top);
    699694        elmW = element.offsetWidth;
    700695        elmH = element.offsetHeight;
Note: See TracChangeset for help on using the changeset viewer.