Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1d18abe
Update theme.css
damanic Jan 20, 2014
ff8e59f
fixed issue: date picker obscured by elements in admin theme
damanic Feb 11, 2014
a6caff5
Merge remote-tracking branch 'origin/master'
damanic Feb 11, 2014
e0c8d9d
fixed issue: date picker obscured by elements in admin theme
damanic Feb 11, 2014
ff5ea08
This update allows you restrict/hide module permissions from admin_us…
damanic Mar 4, 2014
7e67534
This update allows you restrict/hide module permissions from admin_us…
damanic Mar 4, 2014
550b821
This update allows you restrict/hide module permissions from admin_us…
damanic Mar 4, 2014
37c59aa
added missing flot.orderBars.js, commented out references to missing …
damanic Mar 5, 2014
d17655f
_search_element did not exist on login. Caused error. Added Conditional
damanic Mar 5, 2014
689c924
_search_element did not exist on login. Caused error. Added Conditional
damanic Mar 5, 2014
7f8b82b
use admin logo on login screen - if set
damanic Mar 5, 2014
ac1332f
fixed issue where access_exceptions would not overide permission access
damanic Mar 5, 2014
8d0683a
link user avatar to mysettings page
damanic Mar 5, 2014
9cc0ef5
uploaded files linked to /admin/files/get/ but no controller existe…
damanic Mar 6, 2014
72aafaf
Fixed some minor Issues with super admin detection.
damanic May 16, 2014
7dfc397
Fixed some minor Issues with super admin detection.
damanic May 16, 2014
06f9278
Minor Update. Allows for icon in Admin_Html::button
damanic Jul 18, 2014
fa37734
Allow user to set their time zone on their profile/settings page.
damanic Nov 19, 2014
3e4f442
Gravatar Image used for Profile Avatar
damanic Nov 19, 2014
6ac3fc5
Improved Error Log Preview
damanic Dec 5, 2014
7129012
Added Error Notification Template for Admins.
damanic Dec 5, 2014
aa2b54d
#13|1.0.13 Some CSS updates (chzn/chosen), https resource links inste…
damanic Oct 30, 2015
c2158ab
#14|1.0.14 Admin_Menu_Item::check_permission() checks for `:` delimiter
damanic Dec 8, 2015
85f4b8e
Adds disabled account filter to administrators list view
damanic Mar 8, 2018
09b0fc6
Adds disabled account filter to administrators list view
damanic Mar 29, 2018
b6bf969
Persists full screen js behaviour (sessionStorage)
damanic Mar 29, 2018
b1fe4b0
Persists full screen js behaviour (sessionStorage)
damanic Mar 29, 2018
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
799 changes: 412 additions & 387 deletions assets/extras/chosen/chosen.css

Large diffs are not rendered by default.

2,215 changes: 1,192 additions & 1,023 deletions assets/extras/chosen/chosen.jquery.js

Large diffs are not rendered by default.

12 changes: 2 additions & 10 deletions assets/extras/chosen/chosen.jquery.min.js

Large diffs are not rendered by default.

201 changes: 201 additions & 0 deletions assets/extras/flot/jquery.flot.orderBars.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
/*
* Flot plugin to order bars side by side.
*
* Released under the MIT license by Benjamin BUFFET, 20-Sep-2010.
* Modifications made by Steven Hall <github.com/emmerich>, 01-May-2013.
*
* This plugin is an alpha version.
*
* To activate the plugin you must specify the parameter "order" for the specific serie :
*
* $.plot($("#placeholder"), [{ data: [ ... ], bars :{ order = null or integer }])
*
* If 2 series have the same order param, they are ordered by the position in the array;
*
* The plugin adjust the point by adding a value depanding of the barwidth
* Exemple for 3 series (barwidth : 0.1) :
*
* first bar décalage : -0.15
* second bar décalage : -0.05
* third bar décalage : 0.05
*
*/

// INFO: decalage/decallage is French for gap. It's used to denote the spacing applied to each
// bar.
(function($){
function init(plot){
var orderedBarSeries;
var nbOfBarsToOrder;
var borderWidth;
var borderWidthInXabsWidth;
var pixelInXWidthEquivalent = 1;
var isHorizontal = false;

// A mapping of order integers to decallage.
var decallageByOrder = {};

/*
* This method add shift to x values
*/
function reOrderBars(plot, serie, datapoints){
var shiftedPoints = null;

if(serieNeedToBeReordered(serie)){
checkIfGraphIsHorizontal(serie);
calculPixel2XWidthConvert(plot);
retrieveBarSeries(plot);
calculBorderAndBarWidth(serie);

if(nbOfBarsToOrder >= 2){
var position = findPosition(serie);
var decallage = 0;

var centerBarShift = calculCenterBarShift();

// If we haven't already calculated the decallage for this order value, do it.
if(typeof decallageByOrder[serie.bars.order] === 'undefined') {
if (isBarAtLeftOfCenter(position)){
decallageByOrder[serie.bars.order] = -1*(sumWidth(orderedBarSeries,position-1,Math.floor(nbOfBarsToOrder / 2)-1)) - centerBarShift;
}else{
decallageByOrder[serie.bars.order] = sumWidth(orderedBarSeries,Math.ceil(nbOfBarsToOrder / 2),position-2) + centerBarShift + borderWidthInXabsWidth*2;
}
}

// Lookup the decallage based on the series' order value.
decallage = decallageByOrder[serie.bars.order];

shiftedPoints = shiftPoints(datapoints,serie,decallage);
datapoints.points = shiftedPoints;
}
}
return shiftedPoints;
}

function serieNeedToBeReordered(serie){
return serie.bars != null
&& serie.bars.show
&& serie.bars.order != null;
}

function calculPixel2XWidthConvert(plot){
var gridDimSize = isHorizontal ? plot.getPlaceholder().innerHeight() : plot.getPlaceholder().innerWidth();
var minMaxValues = isHorizontal ? getAxeMinMaxValues(plot.getData(),1) : getAxeMinMaxValues(plot.getData(),0);
var AxeSize = minMaxValues[1] - minMaxValues[0];
pixelInXWidthEquivalent = AxeSize / gridDimSize;
}

function getAxeMinMaxValues(series,AxeIdx){
var minMaxValues = new Array();
for(var i = 0; i < series.length; i++){
minMaxValues[0] = series[i].data[0][AxeIdx];
minMaxValues[1] = series[i].data[series[i].data.length - 1][AxeIdx];
}
return minMaxValues;
}

function retrieveBarSeries(plot){
orderedBarSeries = findOthersBarsToReOrders(plot.getData());
nbOfBarsToOrder = orderedBarSeries.length;
}

function findOthersBarsToReOrders(series){
var retSeries = new Array();
var orderValuesSeen = [];

for(var i = 0; i < series.length; i++){
if(series[i].bars.order != null && series[i].bars.show &&
orderValuesSeen.indexOf(series[i].bars.order) < 0){

orderValuesSeen.push(series[i].bars.order);
retSeries.push(series[i]);
}
}
return retSeries.sort(sortByOrder);
}

function sortByOrder(serie1,serie2){
var x = serie1.bars.order;
var y = serie2.bars.order;
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
}

function calculBorderAndBarWidth(serie){
borderWidth = typeof serie.bars.lineWidth !== 'undefined' ? serie.bars.lineWidth : 2;
borderWidthInXabsWidth = borderWidth * pixelInXWidthEquivalent;
}

function checkIfGraphIsHorizontal(serie){
if(serie.bars.horizontal){
isHorizontal = true;
}
}

function findPosition(serie){
var pos = 0
for (var i = 0; i < orderedBarSeries.length; ++i) {
if (serie == orderedBarSeries[i]){
pos = i;
break;
}
}

return pos+1;
}

function calculCenterBarShift(){
var width = 0;

if(nbOfBarsToOrder%2 != 0)
width = (orderedBarSeries[Math.ceil(nbOfBarsToOrder / 2)].bars.barWidth)/2;

return width;
}

function isBarAtLeftOfCenter(position){
return position <= Math.ceil(nbOfBarsToOrder / 2);
}

function sumWidth(series,start,end){
var totalWidth = 0;

for(var i = start; i <= end; i++){
totalWidth += series[i].bars.barWidth+borderWidthInXabsWidth*2;
}

return totalWidth;
}

function shiftPoints(datapoints,serie,dx){
var ps = datapoints.pointsize;
var points = datapoints.points;
var j = 0;
for(var i = isHorizontal ? 1 : 0;i < points.length; i += ps){
points[i] += dx;
//Adding the new x value in the serie to be abble to display the right tooltip value,
//using the index 3 to not overide the third index.
serie.data[j][3] = points[i];
j++;
}

return points;
}

plot.hooks.processDatapoints.push(reOrderBars);

}

var options = {
series : {
bars: {order: null} // or number/string
}
};

$.plot.plugins.push({
init: init,
options: options,
name: "orderBars",
version: "0.2"
});

})(jQuery);
1 change: 1 addition & 0 deletions assets/scripts/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ var LightLoadingIndicator = function(options) {
return o;
};


//
// Initialize tips
//
Expand Down
11 changes: 3 additions & 8 deletions assets/scripts/js/jquery.admin.forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function admin_style_forms() {
var $ = jQuery;
$('select').each(function(){
if (!$(this).hasClass('no-styling')) {
var options = {},
var options = {disable_search_threshold: 10},
self = this,
select = $(this);

Expand All @@ -20,8 +20,9 @@ function admin_style_forms() {

// select.off('.chosen-handler');
// select.on('change.chosen-handler', function(){
// $(this).trigger('change');
// $(this).trigger('change');
// });
//console.log(options);

select.chosen(options);
}
Expand Down Expand Up @@ -73,12 +74,6 @@ jQuery.fn.extend({

select_update: function() {
jQuery(this).trigger("list:updated");
},

select_focus: function() {
var el = jQuery(this).parent().find('a.chzn-single');
if (el.length > 0)
el[0].focus();
}
});

Expand Down
Loading