Q2W3 Fixed Widget - Version 2.2.4

Version Description

  • This version is jQuery 1.9 compatible
Download this release

Release Info

Developer Max Bond
Plugin Icon 128x128 Q2W3 Fixed Widget
Version 2.2.4
Comparing to
See all releases

Code changes from version 2.2.3 to 2.2.4

Files changed (3) hide show
  1. js/q2w3-fixed-widget.js +2 -10
  2. q2w3-fixed-widget.php +2 -2
  3. readme.txt +4 -1
js/q2w3-fixed-widget.js CHANGED
@@ -9,14 +9,6 @@ function q2w3_sidebar(options) {
9
  var window_height = jQuery(window).height();
10
  var document_height = jQuery(document).height();
11
 
12
- if ( jQuery.browser.mozilla || jQuery.browser.webkit ) { // fixes Mozilla & Webkit page refresh problem. Not working for IE and Opera
13
- var sc = jQuery(document).scrollTop()
14
- if ( sc > 0 ) {
15
- jQuery(document).scrollTop(0);
16
- jQuery(document).scrollTop(sc);
17
- }
18
- }
19
-
20
  function widget(obj, position, offset_top, fixed_margin_top, fixed_margin_bottom, height, next_widgets_height) {
21
  this.obj = obj;
22
  this.position = position;
@@ -66,7 +58,7 @@ function q2w3_sidebar(options) {
66
  }
67
  }
68
 
69
- jQuery(window).off('scroll.' + options.sidebar);
70
 
71
  for ( var i = 0; i < widgets.length; i++ ) {
72
  if (widgets[i]) fixed_widget(widgets[i]);
@@ -123,7 +115,7 @@ function q2w3_sidebar(options) {
123
  style_applied_bottom = false;
124
  }
125
  }
126
- });
127
 
128
  }
129
 
9
  var window_height = jQuery(window).height();
10
  var document_height = jQuery(document).height();
11
 
 
 
 
 
 
 
 
 
12
  function widget(obj, position, offset_top, fixed_margin_top, fixed_margin_bottom, height, next_widgets_height) {
13
  this.obj = obj;
14
  this.position = position;
58
  }
59
  }
60
 
61
+ jQuery(window).off('load scroll.' + options.sidebar);
62
 
63
  for ( var i = 0; i < widgets.length; i++ ) {
64
  if (widgets[i]) fixed_widget(widgets[i]);
115
  style_applied_bottom = false;
116
  }
117
  }
118
+ }).trigger('scroll.' + options.sidebar);
119
 
120
  }
121
 
q2w3-fixed-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Q2W3 Fixed Widget
4
  Plugin URI: http://www.q2w3.ru/q2w3-fixed-widget-wordpress-plugin/
5
  Description: Fixes positioning of the selected widgets, when the page is scrolled down.
6
  Author: Max Bond
7
- Version: 2.2.3
8
  Author URI: http://www.q2w3.ru/
9
  */
10
 
@@ -48,7 +48,7 @@ class q2w3_fixed_widget {
48
 
49
  public static function init() {
50
 
51
- wp_enqueue_script('q2w3-fixed-widget', plugin_dir_url( __FILE__ ) . 'js/q2w3-fixed-widget.js', array('jquery'), '2.2.3');
52
 
53
  self::check_custom_ids();
54
 
4
  Plugin URI: http://www.q2w3.ru/q2w3-fixed-widget-wordpress-plugin/
5
  Description: Fixes positioning of the selected widgets, when the page is scrolled down.
6
  Author: Max Bond
7
+ Version: 2.2.4
8
  Author URI: http://www.q2w3.ru/
9
  */
10
 
48
 
49
  public static function init() {
50
 
51
+ wp_enqueue_script('q2w3-fixed-widget', plugin_dir_url( __FILE__ ) . 'js/q2w3-fixed-widget.js', array('jquery'), '2.2.4');
52
 
53
  self::check_custom_ids();
54
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: sidebar, widget, scroll, fixed, floating, sticky, russian, q2w3
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
- Stable tag: 2.2.3
8
 
9
  Fixes positioning of the selected widgets, when the page is scrolled down.
10
 
@@ -74,6 +74,9 @@ This option defines (in milliseconds, 1 sec = 1000 ms) how often plugin recalcul
74
 
75
  == Changelog ==
76
 
 
 
 
77
  = 2.2.3 =
78
  * Little internal improvments
79
  * Mobile Detect updated to version 2.6.0
4
  Tags: sidebar, widget, scroll, fixed, floating, sticky, russian, q2w3
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
+ Stable tag: 2.2.4
8
 
9
  Fixes positioning of the selected widgets, when the page is scrolled down.
10
 
74
 
75
  == Changelog ==
76
 
77
+ = 2.2.4 =
78
+ * This version is jQuery 1.9 compatible
79
+
80
  = 2.2.3 =
81
  * Little internal improvments
82
  * Mobile Detect updated to version 2.6.0