Lines Matching defs:inner

46         var inner = {
88 inner.initChanges();
90 var $current = $(inner.$changes[inner.currentIndex - 1])
93 inner.$errors.error ( "No previous chunk!" )
97 inner.currentIndex --;
99 inner.$progress.progress("Going to chunk " + (inner.currentIndex+1) + "/" + inner.$changes.length )
101 inner.scrollTop($current.offset().top - inner.options.$parent.offset().top);
103 inner.$summary.trigger("diff.summary.refresh");
110 inner.initChanges();
112 var $current = $(inner.$changes[inner.currentIndex + 1])
115 inner.$errors.error ( "No next chunk!" )
119 inner.currentIndex ++;
121 inner.$progress.progress("Going to chunk " + (inner.currentIndex+1) + "/" + inner.$changes.length )
123 inner.scrollTop($current.offset().top - inner.options.$parent.offset().top);
125 inner.$summary.trigger("diff.summary.refresh");
130 inner.$panel = $("<div></div>")
136 inner.createHeader()
137 inner.createButtons()
138 inner.createProgress()
139 inner.createErrors()
144 inner.$panel.stop().animate({
145 top: inner.options.$content.scrollTop() +
146 inner.options.$toggleButton.offset().top,
147 left: inner.options.$toggleButton.offset().left +
148 inner.options.$toggleButton.width(),
150 }, inner.options.animationDuration, function() {
151 inner.$panel.hide()
152 inner.options.$toggleButton.data("animation-in-progress", null );
154 inner.options.$toggleButton.data("animation-in-progress", "hiding" );
156 inner.$summary = $("<span class='prev summary'></span>")
157 .text(inner.$changes.length + " chunks")
159 var index = inner.currentIndex < 0 ? 1 : ( inner.currentIndex + 1 );
160 $(this).text ( index + "/" + inner.$changes.length + " chunks" )
164 $controls.append(inner.$summary)
166 inner.$panel.append($controls)
170 .click(inner.prevHandler)
172 .click(inner.nextHandler)
177 inner.$panel.append($controls)
188 inner.$panel.append($errors)
189 inner.$errors = $errors
198 inner.$errors.html("")
200 inner.$panel.append($progress)
201 inner.$progress = $progress
204 if(inner.$changes.length)
207 var isTable = inner.options.$parent.find("table").length > 0
209 inner.$changes = isTable ? inner.options.$parent.find(inner.options.chunkSelector) :
210 inner.options.$parent.find(inner.options.addSelector + "," + inner.options.delSelector)
212 inner.$summary.trigger("diff.summary.refresh");
215 inner.createPanel();
217 inner.options.$toggleButton.each(function(){
218 inner.$panel.css({
225 inner.options.$toggleButton.click(function(e){
226 inner.initChanges();
229 inner.$panel.stop().animate({
230 top: inner.options.$content.scrollTop() +
234 }, inner.options.animationDuration, function() {
235 inner.$panel.hide()
240 inner.$panel.stop().show().animate({
241 top: inner.options.$content.scrollTop() +
242 inner.options.$parent.offset().top,
243 left: $(window).width() - inner.$panel.width() - 25,
245 }, inner.options.animationDuration, function(){
256 if (inner.initialized)
258 inner.options = $.extend({}, inner.defaults, options)
260 inner.init ()
267 inner.nextHandler(e)
270 inner.prevHandler(e)
276 inner.initialized = true