Skip to content

Commit e543933

Browse files
committed
fixed from web button
1 parent 16a9fbe commit e543933

File tree

6 files changed

+23
-19
lines changed

6 files changed

+23
-19
lines changed

classes/Visualizer/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
class Visualizer_Plugin {
3131

3232
const NAME = 'visualizer';
33-
const VERSION = '1.5';
33+
const VERSION = '1.5.1';
3434

3535
// custom post types
3636
const CPT_VISUALIZER = 'visualizer';

classes/Visualizer/Render/Page/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function _renderSidebarContent() {
8989
esc_attr_e( 'From Computer', Visualizer_Plugin::NAME );
9090
echo '</div>';
9191

92-
echo '<a id="" class="button from-web from-web-btn" href="javascript:;">', esc_html__( 'From Web', Visualizer_Plugin::NAME ), '</a>';
92+
echo '<a id="remote-file" class="button from-web from-web-btn" href="javascript:;">', esc_html__( 'From Web', Visualizer_Plugin::NAME ), '</a>';
9393
// Added by Ash/Upwork
9494
if( defined( 'Visualizer_Pro' ) ){
9595
global $Visualizer_Pro;

css/frame.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,7 @@ div.group-content .group-description {
431431
cursor: pointer;
432432
}
433433

434-
#remote-file {
435-
margin-top: 10px;
434+
#remote-file {
436435
clear: both;
437436
}
438437

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Visualizer: Charts and Graphs
44
Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs/
55
Description: A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages. The plugin uses Google Visualization API to render charts, which supports cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases.
6-
Version: 1.5
6+
Version: 1.5.1
77
Author: Themeisle
88
Author URI: http://themeisle.com
99
License: GPL v2.0 or later

js/visualizer-pointer.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
jQuery(document).ready( function($) {
22
visualizer_pointer_open_pointer(0);
33
function visualizer_pointer_open_pointer(i) {
4-
pointer = visualizer.pointers[i];
5-
options = $.extend(pointer.options, {
6-
close: function () {
7-
$.post(ajaxurl, {
8-
pointer: pointer.pointer_id,
9-
action: 'dismiss-wp-pointer'
10-
});
11-
}
12-
});
13-
$(pointer.target).pointer(options).pointer('open');
4+
if(visualizer.pointers[i]) {
5+
pointer = visualizer.pointers[i];
6+
options = $.extend(pointer.options, {
7+
close: function () {
8+
$.post(ajaxurl, {
9+
pointer: pointer.pointer_id,
10+
action: 'dismiss-wp-pointer'
11+
});
12+
}
13+
});
14+
$(pointer.target).pointer(options).pointer('open');
15+
}
1416
}
1517
});

readme.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
=== Visualizer ===
2-
Contributors: madpixels, straightforward
1+
=== Visualizer: Charts and Graphs ===
2+
Contributors: codeinwp,marius2012,marius_codeinwp,hardeepasrani,themeisle,Madalin_ThemeIsle
33
Donate link: http://flattr.com/thing/2574985/WordPress-Visualizer
44
Tags: chart, charts, charting, graph, graphs, graphing, visualisation, visualise data, visualization, visualize data, HTML5, canvas, pie chart, line chart, bar chart, column chart, gauge chart, area chart, scatter chart, candlestick chart, geo chart, google visualization api
55
Requires at least: 3.5
6-
Tested up to: 3.9.1
7-
Stable tag: 1.4.2.3
6+
Tested up to: 4.3.1
7+
Stable tag: trunk
88
License: GPL v2.0 or later
99
License URI: http://www.opensource.org/licenses/gpl-license.php
1010

@@ -58,6 +58,9 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
5858

5959
== Changelog ==
6060

61+
= 1.5.1 =
62+
* Fixed bug with from web button
63+
6164
= 1.5 =
6265
* Added support for live editor
6366
* Added support for importing data from other charts

0 commit comments

Comments
 (0)