rtMedia for WordPress, BuddyPress and bbPress - Version 2.10.3

Version Description

  • Removes lightbox from mobile devices
  • Fixes a few bugs related to notifications
Download this release

Release Info

Developer saurabhshukla
Plugin Icon 128x128 rtMedia for WordPress, BuddyPress and bbPress
Version 2.10.3
Comparing to
See all releases

Code changes from version 2.10.2 to 2.10.3

Files changed (3) hide show
  1. app/assets/js/main.js +13 -12
  2. index.php +1 -1
  3. readme.txt +7 -3
app/assets/js/main.js CHANGED
@@ -46,7 +46,7 @@ jQuery(document).ready(function(){
46
}
47
jQuery('#bp-media-upload-ui').slideToggle();
48
});
49
-
50
jQuery('#item-body').on('click','#bp-media-move-merge-button', function(){
51
jQuery('#bp-media-upload-ui').slideUp();
52
jQuery('#bp-media-delete-ui').slideUp();
@@ -73,7 +73,7 @@ jQuery(document).ready(function(){
73
}
74
});
75
});
76
-
77
jQuery('#item-body').on('click','#bp-media-delete-button', function(){
78
jQuery('#bp-media-upload-ui').slideUp();
79
jQuery('#bp-media-move-merge-ui').slideUp();
@@ -100,21 +100,21 @@ jQuery(document).ready(function(){
100
}
101
});
102
});
103
-
104
jQuery('#bp-media-move-merge-ui,#bp-media-delete-ui').on('click','.select-all', function(e){
105
e.preventDefault();
106
jQuery('#bp-media-list input').each(function(){
107
jQuery(this).prop('checked',true);
108
});
109
});
110
-
111
jQuery('#bp-media-move-merge-ui,#bp-media-delete-ui').on('click','.unselect-all', function(e){
112
e.preventDefault();
113
jQuery('#bp-media-list input').each(function(){
114
jQuery(this).prop('checked',false);
115
});
116
});
117
-
118
jQuery('#bp-media-move-merge-ui').on('change','#bp-media-move-merge-select', function(){
119
$this = jQuery(this);
120
if ( $this.val() == 'move' ) {
@@ -126,13 +126,13 @@ jQuery(document).ready(function(){
126
}
127
jQuery('#bp-media-show-more').attr('data-move',1);
128
jQuery('.bp-media-move-selected-checks').fadeIn();
129
- } else if ( $this.val() == 'merge' ) {
130
jQuery('.bp-media-move-selected-checks').fadeOut();
131
jQuery('#bp-media-list input').remove();
132
jQuery('#bp-media-show-more').attr('data-move',0)
133
}
134
});
135
-
136
jQuery('#bp-media-move-merge-ui').on('click','#bp-media-move-merge-media',function(){
137
jQuery(this).siblings('.bp-media-ajax-spinner').show();
138
jQuery(this).prop('disabled',true);
@@ -207,9 +207,9 @@ jQuery(document).ready(function(){
207
jQuery(this).removeClass('disabled');
208
return false;
209
}
210
-
211
});
212
-
213
jQuery('#bp-media-delete-ui').on('click','#bp-media-delete-media',function(){
214
jQuery(this).siblings('.bp-media-ajax-spinner').show();
215
jQuery(this).prop('disabled',true);
@@ -279,7 +279,7 @@ jQuery(document).ready(function(){
279
jQuery('.bp-media-gallery').append(response);
280
});
281
});
282
-
283
jQuery('#bp-media-show-more-sc').click(function(e){
284
e.preventDefault();
285
$this = jQuery(this);
@@ -331,7 +331,8 @@ jQuery(document).ready(function(){
331
);
332
});
333
334
- if ( bp_media_vars.lightbox > 0 ) {
335
jQuery('#bp-media-list,.widget-item-listing,.bp-media-sc-list').on('click','li a',function(e){
336
e.preventDefault();
337
$current = jQuery(this);
@@ -487,7 +488,7 @@ jQuery(document).ready(function(){
487
/* Hide excess comments */
488
// if ( jQuery('.activity-comments').length )
489
// bp_legacy_theme_hide_comments();
490
-
491
jQuery('.bp-media-image-editor').bind('DOMNodeInserted DOMNodeRemoved', function(event) {
492
$id = jQuery('.bp-media-image-editor').attr('id').replace('image-editor-','');
493
if (!jQuery('#imgedit-save-target-'+$id).length){
46
}
47
jQuery('#bp-media-upload-ui').slideToggle();
48
});
49
+
50
jQuery('#item-body').on('click','#bp-media-move-merge-button', function(){
51
jQuery('#bp-media-upload-ui').slideUp();
52
jQuery('#bp-media-delete-ui').slideUp();
73
}
74
});
75
});
76
+
77
jQuery('#item-body').on('click','#bp-media-delete-button', function(){
78
jQuery('#bp-media-upload-ui').slideUp();
79
jQuery('#bp-media-move-merge-ui').slideUp();
100
}
101
});
102
});
103
+
104
jQuery('#bp-media-move-merge-ui,#bp-media-delete-ui').on('click','.select-all', function(e){
105
e.preventDefault();
106
jQuery('#bp-media-list input').each(function(){
107
jQuery(this).prop('checked',true);
108
});
109
});
110
+
111
jQuery('#bp-media-move-merge-ui,#bp-media-delete-ui').on('click','.unselect-all', function(e){
112
e.preventDefault();
113
jQuery('#bp-media-list input').each(function(){
114
jQuery(this).prop('checked',false);
115
});
116
});
117
+
118
jQuery('#bp-media-move-merge-ui').on('change','#bp-media-move-merge-select', function(){
119
$this = jQuery(this);
120
if ( $this.val() == 'move' ) {
126
}
127
jQuery('#bp-media-show-more').attr('data-move',1);
128
jQuery('.bp-media-move-selected-checks').fadeIn();
129
+ } else if ( $this.val() == 'merge' ) {
130
jQuery('.bp-media-move-selected-checks').fadeOut();
131
jQuery('#bp-media-list input').remove();
132
jQuery('#bp-media-show-more').attr('data-move',0)
133
}
134
});
135
+
136
jQuery('#bp-media-move-merge-ui').on('click','#bp-media-move-merge-media',function(){
137
jQuery(this).siblings('.bp-media-ajax-spinner').show();
138
jQuery(this).prop('disabled',true);
207
jQuery(this).removeClass('disabled');
208
return false;
209
}
210
+
211
});
212
+
213
jQuery('#bp-media-delete-ui').on('click','#bp-media-delete-media',function(){
214
jQuery(this).siblings('.bp-media-ajax-spinner').show();
215
jQuery(this).prop('disabled',true);
279
jQuery('.bp-media-gallery').append(response);
280
});
281
});
282
+
283
jQuery('#bp-media-show-more-sc').click(function(e){
284
e.preventDefault();
285
$this = jQuery(this);
331
);
332
});
333
334
+ if ( bp_media_vars.lightbox > 0 && !(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) ) {
335
+
336
jQuery('#bp-media-list,.widget-item-listing,.bp-media-sc-list').on('click','li a',function(e){
337
e.preventDefault();
338
$current = jQuery(this);
488
/* Hide excess comments */
489
// if ( jQuery('.activity-comments').length )
490
// bp_legacy_theme_hide_comments();
491
+
492
jQuery('.bp-media-image-editor').bind('DOMNodeInserted DOMNodeRemoved', function(event) {
493
$id = jQuery('.bp-media-image-editor').attr('id').replace('image-editor-','');
494
if (!jQuery('#imgedit-save-target-'+$id).length){
index.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: BuddyPress Media
4
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
- Version: 2.10.2
7
Author: rtCamp
8
Text Domain: buddypress-media
9
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
3
Plugin Name: BuddyPress Media
4
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
+ Version: 2.10.3
7
Author: rtCamp
8
Text Domain: buddypress-media
9
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
readme.txt CHANGED
@@ -6,7 +6,7 @@ License: GPLv2 or later
6
License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
Requires at least: WordPress 3.5 + BuddyPress 1.6
8
Tested up to: WordPress 3.5 + BuddyPress 1.7
9
- Stable tag: 2.10.2
10
11
Adds Photos, Music, Videos & Albums to BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
12
@@ -119,6 +119,10 @@ Please visit [BuddyPress Media's Features page](http://rtcamp.com/buddypress-med
119
120
Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit BuddyPress Media's Features page") to get some details about future releases.
121
122
= 2.10.2 =
123
* Fixes a [bug in admin](https://github.com/rtCamp/buddypress-media/issues/264)
124
* Fixes text-domain issues
@@ -378,5 +382,5 @@ Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-medi
378
* HTML5 Video Tag Support (with fallback)
379
380
== Upgrade Notice ==
381
- = 2.10.2 =
382
- Adds album management options (Merge/Move/Delete), shortcode to display media. Bug fixes.
6
License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
Requires at least: WordPress 3.5 + BuddyPress 1.6
8
Tested up to: WordPress 3.5 + BuddyPress 1.7
9
+ Stable tag: 2.10.3
10
11
Adds Photos, Music, Videos & Albums to BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
12
119
120
Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit BuddyPress Media's Features page") to get some details about future releases.
121
122
+ = 2.10.3 =
123
+ * Removes lightbox from mobile devices
124
+ * Fixes a few bugs related to notifications
125
+
126
= 2.10.2 =
127
* Fixes a [bug in admin](https://github.com/rtCamp/buddypress-media/issues/264)
128
* Fixes text-domain issues
382
* HTML5 Video Tag Support (with fallback)
383
384
== Upgrade Notice ==
385
+ = 2.10.3 =
386
+ Removes lightbox automatically on mobile devices. Bug fixes.