Mercurial > hg > digilib
diff client/digitallibrary/jquery/jquery-test-full.html @ 753:8452a485e0e7 jquery
primitive plugin extension mechanism - unsure how useful this is
author | hertzhaft |
---|---|
date | Tue, 08 Feb 2011 23:57:39 +0100 |
parents | fb4ffac2950d |
children | ee47917540c7 |
line wrap: on
line diff
--- a/client/digitallibrary/jquery/jquery-test-full.html Sun Feb 06 22:17:41 2011 +0100 +++ b/client/digitallibrary/jquery/jquery-test-full.html Tue Feb 08 23:57:39 2011 +0100 @@ -36,7 +36,17 @@ interactionMode : 'fullscreen', scalerBaseUrl : 'http://digilib.biblhertz.it/digilib04/servlet/Scaler' }; - $('div.digilib').digilib(opts); + var $div = $('div.digilib'); + $div.digilib(opts); + var obj = { + 'initExtension' : function() { + var settings = $(this).data('digilib').settings; + console.debug('initExtension:', this, 'settings:', settings); + }, + 'options' : { 'test' : 'content of option "test"' }, + }; + $div.digilib('extendPlugin', obj); + $div.digilib('initExtension'); }); </script>