Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3813 jQuery / jQueryUI / jqPlot upgrades to latest versions #46

Merged
merged 20 commits into from
Mar 30, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
5e59c59
refs #3813 jquery, jqueryui & jqplot update + some fixes
sgiehl Mar 17, 2013
ab52eb7
refs #3813 jqueryui css update + dialog fixes
sgiehl Mar 20, 2013
5667e91
refs #3813 widget reload on changing column layout was broken
sgiehl Mar 23, 2013
d500bc9
site selectors should not hide preselected value in that cases, as it…
sgiehl Mar 23, 2013
174228a
fixed site selection issue: hidden input field wasn't updated
sgiehl Mar 23, 2013
f3806a2
refs #3813 readding jQuery.browser plugin, as it has been removed in 1.9
sgiehl Mar 24, 2013
b5ab89c
refs #3813 css files in libs folder should always be included first, …
sgiehl Mar 24, 2013
237517a
refs #3813 use piwik tooltip styling for map tooltips
sgiehl Mar 24, 2013
f61bbbc
refs #3813 use jqueryui tooltip plugin instead of piwiks selfmade one…
sgiehl Mar 24, 2013
ed55758
refs #3813 use jqueryui tooltip plugin instead of piwiks selfmade one…
sgiehl Mar 24, 2013
7c58481
refs #3813 use jqueryui tooltip plugin instead of piwiks selfmade one…
sgiehl Mar 24, 2013
82de4cc
refs #3813 use jqueryui tooltip plugin instead of piwiks selfmade one…
sgiehl Mar 29, 2013
b823598
refs #3813 removing now unused piwik tooltip.js
sgiehl Mar 29, 2013
0048ce3
refs #3813 minified jqplot
sgiehl Mar 29, 2013
670a0d2
refs #3813 upgrade to jQueryUI 1.10.2
sgiehl Mar 29, 2013
f563073
refs #3813 fixed language selector: always use form to post data, as …
sgiehl Mar 29, 2013
7f2628c
small improvements
sgiehl Mar 29, 2013
3b4efdd
unneeded comma might cause js error in some older browsers
sgiehl Mar 29, 2013
c2cbf16
small fix
sgiehl Mar 29, 2013
ecb2675
Merge remote-tracking branch 'upstream/master'
sgiehl Mar 29, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions core/AssetManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* JavaScript and CSS files.
*
* It performs the following actions:
* - Identifies required assets
* - Identifies required assets
* - Includes assets in the rendered HTML page
* - Manages asset merging and minifying
* - Manages server-side cache
Expand Down Expand Up @@ -188,9 +188,9 @@ private static function getCssFiles()
private static function sortCssFiles($cssFiles)
{
$priorityCssOrdered = array(
'libs/',
'themes/default/common.css',
'themes/default/',
'libs/',
'plugins/',
);

Expand Down Expand Up @@ -282,6 +282,7 @@ private static function sortJsFiles($jsFiles)
$priorityJsOrdered = array(
'libs/jquery/jquery.js',
'libs/jquery/jquery-ui.js',
'libs/jquery/jquery.browser.js',
'libs/',
'themes/default/common.js',
'themes/default/',
Expand Down
47 changes: 21 additions & 26 deletions libs/jqplot/jqplot-custom.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion libs/jqplot/jqplot.axisLabelRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Pure JavaScript plotting plugin using jQuery
*
* Version: @VERSION
* Revision: @REVISION
*
* Copyright (c) 2009-2011 Chris Leonello
* Copyright (c) 2009-2013 Chris Leonello
* jqPlot is currently available for use in all personal or commercial projects
* under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
* version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can
Expand Down
38 changes: 33 additions & 5 deletions libs/jqplot/jqplot.axisTickRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Pure JavaScript plotting plugin using jQuery
*
* Version: @VERSION
* Revision: @REVISION
*
* Copyright (c) 2009-2011 Chris Leonello
* Copyright (c) 2009-2013 Chris Leonello
* jqPlot is currently available for use in all personal or commercial projects
* under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
* version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can
Expand Down Expand Up @@ -63,7 +64,7 @@
// prop: showLabel
// wether or not to show the label.
this.showLabel = true;
this.label = '';
this.label = null;
this.value = null;
this._styles = {};
// prop: formatter
Expand All @@ -73,6 +74,10 @@
// String to prepend to the tick label.
// Prefix is prepended to the formatted tick label.
this.prefix = '';
// prop: suffix
// String to append to the tick label.
// Suffix is appended to the formatted tick label.
this.suffix = '';
// prop: formatString
// string passed to the formatter.
this.formatString = '';
Expand All @@ -85,6 +90,9 @@
// prop: textColor
// css spec for the color attribute.
this.textColor;
// prop: escapeHTML
// true to escape HTML entities in the label.
this.escapeHTML = false;
this._elem;
this._breakTick = false;

Expand All @@ -108,8 +116,8 @@
};

$.jqplot.AxisTickRenderer.prototype.draw = function() {
if (!this.label) {
this.label = this.prefix + this.formatter(this.formatString, this.value);
if (this.label === null) {
this.label = this.prefix + this.formatter(this.formatString, this.value) + this.suffix;
}
var style = {position: 'absolute'};
if (Number(this.label)) {
Expand All @@ -124,7 +132,14 @@

this._elem = $(document.createElement('div'));
this._elem.addClass("jqplot-"+this.axis+"-tick");
this._elem.text(this.label);

if (!this.escapeHTML) {
this._elem.html(this.label);
}
else {
this._elem.text(this.label);
}

this._elem.css(style);

for (var s in this._styles) {
Expand Down Expand Up @@ -157,6 +172,19 @@
return String(val);
}
};

$.jqplot.PercentTickFormatter = function (format, val) {
if (typeof val == 'number') {
val = 100 * val;
if (!format) {
format = $.jqplot.config.defaultTickFormatString;
}
return $.jqplot.sprintf(format, val);
}
else {
return String(val);
}
};

$.jqplot.AxisTickRenderer.prototype.pack = function() {
};
Expand Down
459 changes: 242 additions & 217 deletions libs/jqplot/jqplot.canvasGridRenderer.js

Large diffs are not rendered by default.

Loading