diff --git a/README.md b/README.md index ea7949b..051b741 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ The plugin is known to work with the configuration described below: * [jQuery](http://jquery.com/) (>=1.8) * [jQuery UI](http://jqueryui.com/) (>=1.8) * [Widget Factory](http://api.jqueryui.com/jQuery.widget/) - * [toe.js](https://github.com/visiongeist/toe.js) (>=3.0) + * [jquery.event.ue.js](https://github.com/mmikowski/jquery.event.ue) (>=0.4.3) * [Zoetrope](https://github.com/benplum/Zoetrope) (>=3.0) * [jquery-mousewheel](https://github.com/brandonaaron/jquery-mousewheel) (>=3.0) * [jQuery imgViewer](https://github.com/waynegm/imgViewer) (>=0.7.1) @@ -33,7 +33,7 @@ Include either the development version or minified production version of the JS - + @@ -279,21 +279,16 @@ This plugin is provided under the [MIT License](http://opensource.org/licenses/M Copyright (c) 2013 Wayne Mogg. ## Release History -### 0.6 -- First release - -### 0.7.1 -- Update to work with imgViewer 0.7.1 -- Add zoomable option to disable zooming -- Updated Grunfile.js to include tests against latest version (2.1.0) of jQuery. +### 0.8.0 +- Update to imgViewer 0.8.0 -### 0.7.2 -- Bump version number for bug fix in imgViewer +### 0.7.6 +- turn events off before removing note markers - for better performance -### 0.7.3 -- Add onUpdateMarker callback -- Add example with custom onUpdateMarker -- Fix so that zoom option value reflects zoom of underlying imgViewer +### 0.7.5 +- Add onUpdate callback +- Add onUpdate callback example that links the markers with a line +- Fix bug affecting display of newly inserted markers and position of edit dialog ### 0.7.4 - Simplify signature for onUpdateMarker callback @@ -302,13 +297,21 @@ Copyright (c) 2013 Wayne Mogg. - Add printing example - Add jQuery Mobile example -### 0.7.5 -- Add onUpdate callback -- Add onUpdate callback example that links the markers with a line -- Fix bug affecting display of newly inserted markers and position of edit dialog +### 0.7.3 +- Add onUpdateMarker callback +- Add example with custom onUpdateMarker +- Fix so that zoom option value reflects zoom of underlying imgViewer -### 0.7.6 -- turn events off before removing note markers - for better performance +### 0.7.2 +- Bump version number for bug fix in imgViewer + +### 0.7.1 +- Update to work with imgViewer 0.7.1 +- Add zoomable option to disable zooming +- Updated Grunfile.js to include tests against latest version (2.1.0) of jQuery. + +### 0.6 +- First release diff --git a/demo.html b/demo.html index 4ffec4d..4b0602a 100644 --- a/demo.html +++ b/demo.html @@ -8,7 +8,7 @@ - + @@ -91,4 +91,4 @@

jQuery imgNotes - Basic Interactive Example

})(jQuery); - \ No newline at end of file + diff --git a/dist/imgNotes.js b/dist/imgNotes.js index 8942024..d8bdbd4 100644 --- a/dist/imgNotes.js +++ b/dist/imgNotes.js @@ -1,6 +1,6 @@ -/*! jQuery imgNotes - v0.7.6 - 2015-06-13 +/*! jQuery imgNotes - v0.8.0 - 2016-08-01 * https://github.com/waynegm/imgNotes -* Copyright (c) 2015 Wayne Mogg; Licensed MIT */ +* Copyright (c) 2016 Wayne Mogg; Licensed MIT */ ;(function($) { $.widget("wgm.imgNotes", { options: { @@ -247,6 +247,7 @@ * Delete a note */ _delete: function(elem) { + this.noteCount--; this.notes = this.notes.filter(function(v) { return v!== elem; }); $(elem).off(); $(elem).remove(); diff --git a/dist/imgNotes.min.js b/dist/imgNotes.min.js index a382ee9..f1a7b52 100644 --- a/dist/imgNotes.min.js +++ b/dist/imgNotes.min.js @@ -1,4 +1,4 @@ -/*! jQuery imgNotes - v0.7.6 - 2015-06-13 +/*! jQuery imgNotes - v0.8.0 - 2016-08-01 * https://github.com/waynegm/imgNotes -* Copyright (c) 2015 Wayne Mogg; Licensed MIT */ -!function(a){a.widget("wgm.imgNotes",{options:{zoom:1,zoomStep:.1,zoomable:!0,canEdit:!1,vAll:"middle",hAll:"middle",onAdd:function(){return this.options.vAll="bottom",this.options.hAll="middle",a(document.createElement("span")).addClass("marker black").html(this.noteCount)},onEdit:function(b,c){var d=a(c);return a("#NoteDialog").remove(),a('
').dialog({title:"Note Editor",resizable:!1,modal:!0,height:"300",width:"450",position:{my:"left bottom",at:"right top",of:c},buttons:{Save:function(){var b=a("textarea",this).val();d.data("note",b),a(this).dialog("close")},Delete:function(){d.trigger("remove"),a(this).dialog("close")},Cancel:function(){a(this).dialog("close")}},open:function(){a(this).css("overflow","hidden");var b=a('