/** * ----------------------------------------------------------------------------- * file: ui.inputPages.js * file version: 1.0.0 * date: 2012-06-18 * * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" * * ----------------------------------------------------------------------------- * Author : Grum * email : grum@piwigo.com * website : http://photos.grum.fr * * << May the Little SpaceFrog be with you ! >> * ----------------------------------------------------------------------------- * * * * * :: HISTORY :: * * | release | date | * | 1.0.0 | 2010/11/04 | * first release * | | | * | | | * | | | * | | | * | | | * | | | * | | | * | | | * */ ( function($) { /* * plugin 'public' functions */ var publicMethods = { init : function (opt) { return this.each(function() { // default values for the plugin var $this=$(this), data = $this.data('options'), objects = $this.data('objects'), properties = $this.data('properties'), options = { nbItems:0, nbItemsPage:50, currentPage:1, displayedPages:7, showButtons:{ first:'auto', last:'auto', previous:'auto', next:'auto', more:'auto' }, chars:{ first:' ', // << previous:' ', // < next:' ', // > last:' ', // >> more:'...' }, change:null }; // if options given, merge it // if(opt) $.extend(options, opt); ==> options are set by setters $this.data('options', options); if(!properties) { $this.data('properties', { initialized:false, nbPages:0 } ); properties=$this.data('properties'); } if(!objects) { objects = { container:$('