Changeset 1448668
- Timestamp:
- 07/04/2016 03:53:11 PM (10 years ago)
- Location:
- rj-quickcharts/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (2 diffs)
-
admin/rjqc-admin-new.php (modified) (5 diffs)
-
ajax/init.php (modified) (7 diffs)
-
rj_charts.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rj-quickcharts/trunk/README.txt
r821960 r1448668 7 7 Requires at least: 3.0 8 8 Tested up to: 3.8 9 Stable tag: 0. 5.99 Stable tag: 0.6.0 10 10 11 11 Build Complex, Powerful HTML5 Bar Charts, Line Charts and Pie Charts in Just Minutes. No Programming Knowledge Required! … … 77 77 == Changelog == 78 78 79 = 0.6.0 = 80 * Bug fixes 81 79 82 = 0.5.9 = 80 83 * Updated CSS for custom icon with WordPress 3.8 -
rj-quickcharts/trunk/admin/rjqc-admin-new.php
r761892 r1448668 8 8 $series_colors = array('#40C0CB', '#AEE239', '#CC333F', '#EB6841', '#2A363B','#F9D423','#00DFFC','#FF847C','#F9F2E7','#E84A5F'); 9 9 10 $id = $_GET['id']; 10 $id = false; 11 if (isset($_GET['id'])) $id = $_GET['id']; 11 12 if ($id) { 12 13 $sql = "SELECT * FROM $table_name WHERE id=$id"; … … 32 33 echo '<input id="rjqc-chart-id" type="hidden" value="'.$id.'" />'; 33 34 34 if ( $_GET['message']) {35 if (isset($_GET['message'])) { 35 36 echo '<div class="updated" style="margin: 15px 20px 0 0;"><p>Chart saved successfully. Now you can go to your Page or Post and choose <b>"Add Media" -> "Insert Quickchart"</b>.</p></div>'; 36 37 } … … 156 157 </script> 157 158 158 <?php if (! $_GET['id']) { ?>159 <?php if (!isset($_GET['id'])) { ?> 159 160 <script> 160 161 (function ($) { … … 202 203 <?php } ?> 203 204 204 <?php if ( $_GET['id']) { ?>205 <?php if (isset($_GET['id'])) { ?> 205 206 <script> 206 207 (function ($) { 207 <?php if ( $_GET['message']) { ?>208 <?php if (isset($_GET['message'])) { ?> 208 209 var path = window.location.pathname + window.location.search; 209 path = path.slice(0,-13);210 //path = path.slice(0,-13); 210 211 window.history.pushState("", "", path); 211 212 setTimeout(function() { … … 437 438 }); 438 439 439 <?php if ( $_GET['id']) { ?>440 <?php if (isset($_GET['id'])) { ?> 440 441 if (<?php echo $legend ?> === 0) { 441 442 setTimeout(function(){ -
rj-quickcharts/trunk/ajax/init.php
r740035 r1448668 49 49 } 50 50 51 if (!$_POST['sub_title']) $sub_title = ''; 52 51 53 $type = $_POST['type']; 52 54 $legend = (int)$_POST['legend']; 53 55 $title = $_POST['title']; 54 $sub_title = $ _POST['sub_title'];56 $sub_title = $sub_title; 55 57 $tooltip_suffix = $_POST['tooltip_suffix']; 56 58 $y_axis_title = $_POST['y_axis_title']; … … 75 77 ); 76 78 79 77 80 $new_id = mysql_insert_id(); 81 if (!$new_id) $new_id = $wpdb->insert_id; 78 82 79 83 echo '{"id": "'.$new_id.'"}'; … … 93 97 $chart = $wpdb->get_results($sql); 94 98 99 $sub_title = $chart[0]->subtitle; 100 if (!$sub_title) $sub_title = ''; 101 95 102 $id = $chart[0]->id; 96 103 $type = $chart[0]->type; 97 104 $title = $chart[0]->title; 98 $sub_title = $ chart[0]->subtitle;105 $sub_title = $sub_title; 99 106 $tooltip_suffix = $chart[0]->tooltipSuffix; 100 107 $y_axis_cats = $chart[0]->xAxisCats; … … 110 117 'type' => $type, 111 118 'title' => $title, 112 'subtitle' => $sub title,119 'subtitle' => $sub_title, 113 120 'tooltipSuffix' => $tooltip_suffix, 114 121 'xAxisCats' => $y_axis_cats, … … 121 128 ); 122 129 130 $new_id = mysql_insert_id(); 131 if (!$new_id) $new_id = $wpdb->insert_id; 132 123 133 echo '{"success":1, 124 134 "message":"Chart duplicated successfully.", 125 "id": "'. mysql_insert_id().'",135 "id": "'.$new_id.'", 126 136 "created":"'.current_time("mysql").'", 127 137 "title":'.json_encode($title).', … … 168 178 } 169 179 180 $sub_title = $_POST['sub_title']; 181 if (!$sub_title) $sub_title = ''; 182 170 183 $wpdb->update( 171 184 $table_name, … … 175 188 'type' => $_POST['type'], 176 189 'title' => $_POST['title'], 177 'subtitle' => $ _POST['sub_title'],190 'subtitle' => $sub_title, 178 191 'tooltipSuffix' => $_POST['tooltip_suffix'], 179 192 'yAxisTitleText'=> $_POST['y_axis_title'], -
rj-quickcharts/trunk/rj_charts.php
r821949 r1448668 4 4 Plugin URI: http://www.randyjensen.com 5 5 Description: Easily create charts for your WordPress site. Line charts, bar charts and pie charts currently supported. 6 Version: 0. 5.96 Version: 0.6.0 7 7 Author: Randy Jensen 8 8 Author URI: http://www.randyjensen.com … … 15 15 global $table_name; 16 16 17 $rjqc_db_version = '0. 5.9';17 $rjqc_db_version = '0.6.0'; 18 18 $table_name = $wpdb->prefix . 'rj_quickcharts'; 19 19
Note: See TracChangeset
for help on using the changeset viewer.