Mercurial > hg > digilib
comparison client/digitallibrary/jquery/jquery.digilib.birdseye.js @ 789:32d1d6601968 jquery
added redisplay handler to birdseye. updated plugin docu.
author | robcast |
---|---|
date | Fri, 18 Feb 2011 19:18:14 +0100 |
parents | 040e9bc1602e |
children | 52c5595af03e |
comparison
equal
deleted
inserted
replaced
788:040e9bc1602e | 789:32d1d6601968 |
---|---|
62 var init = function (data) { | 62 var init = function (data) { |
63 var $data = $(data); | 63 var $data = $(data); |
64 // install event handler | 64 // install event handler |
65 $data.bind('setup', handleSetup); | 65 $data.bind('setup', handleSetup); |
66 $data.bind('update', handleUpdate); | 66 $data.bind('update', handleUpdate); |
67 $data.bind('redisplay', handleRedisplay); | |
67 $data.bind('dragZoom', handleDragZoom); | 68 $data.bind('dragZoom', handleDragZoom); |
68 }; | 69 }; |
69 | 70 |
70 | 71 |
71 var handleSetup = function (evt) { | 72 var handleSetup = function (evt) { |
82 console.debug("birdseye: handleUpdate"); | 83 console.debug("birdseye: handleUpdate"); |
83 data = this; | 84 data = this; |
84 if (data.settings.isBirdDivVisible) { | 85 if (data.settings.isBirdDivVisible) { |
85 renderBirdArea(data); | 86 renderBirdArea(data); |
86 setupBirdDrag(data); | 87 setupBirdDrag(data); |
88 } | |
89 }; | |
90 | |
91 var handleRedisplay = function (evt) { | |
92 console.debug("birdseye: handleRedisplay"); | |
93 data = this; | |
94 if (data.settings.isBirdDivVisible) { | |
95 updateBirdDiv(data); | |
87 } | 96 } |
88 }; | 97 }; |
89 | 98 |
90 var handleDragZoom = function (evt, zoomArea) { | 99 var handleDragZoom = function (evt, zoomArea) { |
91 //console.debug("birdseye: handleDragZoom za="+zoomArea); | 100 //console.debug("birdseye: handleDragZoom za="+zoomArea); |