WP VR – 360 Panorama and virtual tour creator for WordPress - Version 3.4.0

Version Description

  • Repeater delete confirmation fix.

=

Download this release

Release Info

Developer rextheme
Plugin Icon 128x128 WP VR – 360 Panorama and virtual tour creator for WordPress
Version 3.4.0
Comparing to
See all releases

Code changes from version 3.3.0 to 3.4.0

Files changed (3) hide show
  1. README.txt +4 -1
  2. admin/js/wpvr-admin.js +40 -29
  3. wpvr.php +1 -1
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-fo
4
  Tags: virtual tour, real estate tour, panorama, panorama viewer, virtual tour, 360 panorama, interactive tour
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
- Stable tag: 3.3.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -256,5 +256,8 @@ You will find the gyroscope icon at the top left side.
256
  = 3.3.0 =
257
  * Placeholder change.
258
 
 
 
 
259
  == Upgrade Notice ==
260
  Please do update the WP VR to the latest version. Each update makes it sure your plugin is supporting all tour features.  
4
  Tags: virtual tour, real estate tour, panorama, panorama viewer, virtual tour, 360 panorama, interactive tour
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
+ Stable tag: 3.4.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
256
  = 3.3.0 =
257
  * Placeholder change.
258
 
259
+ = 3.4.0 =
260
+ * Repeater delete confirmation fix.
261
+
262
  == Upgrade Notice ==
263
  Please do update the WP VR to the latest version. Each update makes it sure your plugin is supporting all tour features.  
admin/js/wpvr-admin.js CHANGED
@@ -434,22 +434,27 @@
434
  var current = $(this).attr('id');
435
  var fchild = $('.single-scene:nth-child(2)').attr('id');
436
 
437
- if(confirm('Are you sure you want to delete?')) {
438
- jQuery(this).slideUp(deleteElement);
439
- if(current == fchild){
440
- $(this).next().addClass("active");
441
- $(this).parent().parent('.scene-setup').find('.scene-nav li span[data-href="'+hide_id+'"]').parent("li").next().addClass("active");
442
- $(this).parent().parent('.scene-setup').find('.scene-nav li span[data-href="'+hide_id+'"]').parent("li").next().children("span").trigger( "click" );
443
-
444
- }
445
- else {
446
- $(this).prev().addClass("active");
447
- $(this).parent().parent('.scene-setup').find('.scene-nav li span[data-href="'+hide_id+'"]').parent("li").prev().addClass("active");
448
- $(this).parent().parent('.scene-setup').find('.scene-nav li span[data-href="'+hide_id+'"]').parent("li").prev().children("span").trigger( "click" );
449
- }
450
- $(this).parent().parent('.scene-setup').find('.scene-nav li span[data-href="'+hide_id+'"]').parent("li").remove();
451
- setTimeout(deleteinfodata, 1000);
452
- }
 
 
 
 
 
453
  },
454
 
455
  repeaters: [{
@@ -511,22 +516,28 @@
511
  var hotspot_hide_id = $(this).attr("id");
512
  hotspot_hide_id = "#"+hotspot_hide_id;
513
 
514
-
515
  var hotspot_current = $(this).attr('id');
516
  var hotspot_fchild = $(this).parent().children(":first").attr('id');
517
 
518
- jQuery(this).slideUp(deleteElement);
519
- if(hotspot_current == hotspot_fchild){
520
- $(this).next().addClass("active");
521
- $(this).parent().parent('.hotspot-setup').find('.hotspot-nav li span[data-href="'+hotspot_hide_id+'"]').parent("li").next().addClass("active");
522
-
523
- }
524
- else {
525
- $(this).prev().addClass("active");
526
- $(this).parent().parent('.hotspot-setup').find('.hotspot-nav li span[data-href="'+hotspot_hide_id+'"]').parent("li").prev().addClass("active");
527
- }
528
-
529
- $(this).parent().parent('.hotspot-setup').find('.hotspot-nav li:not(:last-child) span[data-href="'+hotspot_hide_id+'"]').parent("li").remove();
 
 
 
 
 
 
 
530
  },
531
 
532
  }]
434
  var current = $(this).attr('id');
435
  var fchild = $('.single-scene:nth-child(2)').attr('id');
436
 
437
+ var elementcontains = $(this).attr("id");
438
+ var str1 = 'scene';
439
+ var str2 = 'hotspot';
440
+ if(elementcontains.indexOf(str1) != -1 && elementcontains.indexOf(str2) == -1){
441
+ if(confirm('Are you sure you want to delete?')) {
442
+ jQuery(this).slideUp(deleteElement);
443
+ if(current == fchild){
444
+ $(this).next().addClass("active");
445
+ $(this).parent().parent('.scene-setup').find('.scene-nav li span[data-href="'+hide_id+'"]').parent("li").next().addClass("active");
446
+ $(this).parent().parent('.scene-setup').find('.scene-nav li span[data-href="'+hide_id+'"]').parent("li").next().children("span").trigger( "click" );
447
+
448
+ }
449
+ else {
450
+ $(this).prev().addClass("active");
451
+ $(this).parent().parent('.scene-setup').find('.scene-nav li span[data-href="'+hide_id+'"]').parent("li").prev().addClass("active");
452
+ $(this).parent().parent('.scene-setup').find('.scene-nav li span[data-href="'+hide_id+'"]').parent("li").prev().children("span").trigger( "click" );
453
+ }
454
+ $(this).parent().parent('.scene-setup').find('.scene-nav li span[data-href="'+hide_id+'"]').parent("li").remove();
455
+ setTimeout(deleteinfodata, 1000);
456
+ }
457
+ }
458
  },
459
 
460
  repeaters: [{
516
  var hotspot_hide_id = $(this).attr("id");
517
  hotspot_hide_id = "#"+hotspot_hide_id;
518
 
 
519
  var hotspot_current = $(this).attr('id');
520
  var hotspot_fchild = $(this).parent().children(":first").attr('id');
521
 
522
+ var hpelementcontains = $(this).attr("id");
523
+ var hpstr1 = 'scene';
524
+ var hpstr2 = 'hotspot';
525
+ if(hpelementcontains.indexOf(hpstr1) != -1 && hpelementcontains.indexOf(hpstr2) != -1){
526
+ if(confirm('Are you sure you want to delete?')) {
527
+ jQuery(this).slideUp(deleteElement);
528
+ if(hotspot_current == hotspot_fchild){
529
+ $(this).next().addClass("active");
530
+ $(this).parent().parent('.hotspot-setup').find('.hotspot-nav li span[data-href="'+hotspot_hide_id+'"]').parent("li").next().addClass("active");
531
+
532
+ }
533
+ else {
534
+ $(this).prev().addClass("active");
535
+ $(this).parent().parent('.hotspot-setup').find('.hotspot-nav li span[data-href="'+hotspot_hide_id+'"]').parent("li").prev().addClass("active");
536
+ }
537
+
538
+ $(this).parent().parent('.hotspot-setup').find('.hotspot-nav li:not(:last-child) span[data-href="'+hotspot_hide_id+'"]').parent("li").remove();
539
+ }
540
+ }
541
  },
542
 
543
  }]
wpvr.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WP VR
17
  * Plugin URI: https://rextheme.com/wpvr/
18
  * Description: WP VR - 360 Panorama and virtual tour creator for WordPress is a customized panaroma & virtual builder tool for WordPress Website.
19
- * Version: 3.3.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
16
  * Plugin Name: WP VR
17
  * Plugin URI: https://rextheme.com/wpvr/
18
  * Description: WP VR - 360 Panorama and virtual tour creator for WordPress is a customized panaroma & virtual builder tool for WordPress Website.
19
+ * Version: 3.4.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+