summaryrefslogtreecommitdiffstats
path: root/jquery-impromptu.js
diff options
context:
space:
mode:
authorTrent Richardson <trentdrichardson@gmail.com>2012-02-02 11:58:27 -0500
committerTrent Richardson <trentdrichardson@gmail.com>2012-02-02 11:58:27 -0500
commitea210b03f84641f2e4648c0082aacf1736d74480 (patch)
tree0f167cad05e0167d7df5f440042e1f944dc1eae4 /jquery-impromptu.js
parentf58706c46d5e3981fd332952941109f0237ae51f (diff)
downloadjQuery-Impromptu-ea210b03f84641f2e4648c0082aacf1736d74480.zip
jQuery-Impromptu-ea210b03f84641f2e4648c0082aacf1736d74480.tar.gz
jQuery-Impromptu-ea210b03f84641f2e4648c0082aacf1736d74480.tar.bz2
Fix arrow positioning
Diffstat (limited to 'jquery-impromptu.js')
-rw-r--r--jquery-impromptu.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/jquery-impromptu.js b/jquery-impromptu.js
index 0b3243b..2580213 100644
--- a/jquery-impromptu.js
+++ b/jquery-impromptu.js
@@ -297,11 +297,9 @@
left: offset.left + pos.x,
marginLeft: 0,
width: (pos.width !== undefined)? pos.width : null
- },
- function(){
- top = (offset.top + pos.y) - ($.prompt.options.top.toString().indexOf('%') >= 0? (windowHeight*(parseInt($.prompt.options.top,10)/100)) : parseInt($.prompt.options.top,10));
- $('html,body').animate({ scrollTop: top }, 'fast', function(){});
});
+ top = (offset.top + pos.y) - ($.prompt.options.top.toString().indexOf('%') >= 0? (windowHeight*(parseInt($.prompt.options.top,10)/100)) : parseInt($.prompt.options.top,10));
+ $('html,body').animate({ scrollTop: top }, 'slow', 'swing', function(){});
}
else{
$.prompt.jqi.css({
@@ -347,11 +345,11 @@
$.prompt.currentStateName = state;
$('.'+ $.prompt.currentPrefix +'_state').slideUp('slow')
- .find('.'+ $.prompt.currentPrefix +'arrow').slideToggle();
+ .find('.'+ $.prompt.currentPrefix +'arrow').fadeToggle();
$('#'+ $.prompt.currentPrefix +'_state_'+ state).slideDown('slow',function(){
$(this).find('.'+ $.prompt.currentPrefix +'defaultbutton').focus()
- .find('.'+ $.prompt.currentPrefix +'arrow').slideToggle();
+ .find('.'+ $.prompt.currentPrefix +'arrow').fadeToggle('slow');
if (typeof callback == 'function')
callback();
});