From 4858720244fb37b7c232021bdcb6573f061ed0ad Mon Sep 17 00:00:00 2001 From: mccannf Date: Thu, 25 Oct 2012 22:31:55 +0200 Subject: [PATCH 1/2] Adding loadMore function to jquery.annotate.js --- js/jquery.annotate.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/jquery.annotate.js b/js/jquery.annotate.js index 6bc541e..ff02f46 100644 --- a/js/jquery.annotate.js +++ b/js/jquery.annotate.js @@ -113,6 +113,13 @@ } }; + $.fn.annotateImage.loadMore = function(newNote) { + /// + /// Loads annotation from note parameter + /// + this.image.notes[newNote] = new $.fn.annotateView(this.image, newNote); + }; + $.fn.annotateImage.getTicks = function() { /// /// Gets a count og the ticks for the current date. From e67dfd056178274271e9b06a9220efa1f1ded984 Mon Sep 17 00:00:00 2001 From: mccannf Date: Thu, 25 Oct 2012 22:47:53 +0200 Subject: [PATCH 2/2] Update js/jquery.annotate.js --- js/jquery.annotate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.annotate.js b/js/jquery.annotate.js index ff02f46..b9b0d65 100644 --- a/js/jquery.annotate.js +++ b/js/jquery.annotate.js @@ -113,11 +113,11 @@ } }; - $.fn.annotateImage.loadMore = function(newNote) { + $.fn.annotateImage.loadMore = function(image, newNote) { /// /// Loads annotation from note parameter /// - this.image.notes[newNote] = new $.fn.annotateView(this.image, newNote); + image.notes[newNote] = new $.fn.annotateView(image, newNote); }; $.fn.annotateImage.getTicks = function() {