Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-10-30 23:24:15 +0300
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-10-30 23:24:15 +0300
commitef16980daa99f20b126ca743cf2b4a699f715ed7 (patch)
tree9d5b367d8bfa0c60bf860e5d353802a5fdccc31d /plugins/Dashboard
parent4c3c01c95feb3c70799898bb26df497de823b924 (diff)
fixes #510 - Update jquery.js
* update jQuery to 1.3.2 * add jquery-ui.js 1.7.2 * move loading of external .css before scripts * remove ui.mouse.js * remove ui.sortable_modif.js
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r--plugins/Dashboard/templates/Dashboard.js23
-rw-r--r--plugins/Dashboard/templates/dashboard.css2
2 files changed, 14 insertions, 11 deletions
diff --git a/plugins/Dashboard/templates/Dashboard.js b/plugins/Dashboard/templates/Dashboard.js
index dcf8d11112..73f15ecb04 100644
--- a/plugins/Dashboard/templates/Dashboard.js
+++ b/plugins/Dashboard/templates/Dashboard.js
@@ -121,8 +121,8 @@ dashboard.prototype =
.hover( function() {
$(this).addClass('widgetHover');
$('.widgetTop', this).addClass('widgetTopHover');
- $('.button#close', this).show();
- }, function() {
+ $('.button#close', this).show();
+ }, function() {
$(this).removeClass('widgetHover');
$('.widgetTop', this).removeClass('widgetTopHover');
$('.button#close', this).hide();
@@ -140,25 +140,28 @@ dashboard.prototype =
makeSortable: function()
{
var self = this;
- function getHelper() {
- return $(this).clone().addClass('helper');
- }
+
function onStart() {
}
- function onStop() {
+
+ function onStop(event, ui) {
$('.widgetHover', this).removeClass('widgetHover');
$('.widgetTopHover', this).removeClass('widgetTopHover');
$('.button#close', this).hide();
self.saveLayout();
}
+
//launch 'sortable' property on every dashboard widgets
self.dashboardElement
- .sortableDestroy()
+ .sortable('destroy')
.sortable({
- items:'.sortable',
- hoverClass: 'hover',
+ items: 'div.sortable',
+ opacity: 0.6,
+ forceHelperSize: true,
+ forcePlaceholderSize: true,
+ placeholder: 'hover',
handle: '.widgetTop',
- helper: getHelper,
+ helper: 'original',
start: onStart,
stop: onStop
});
diff --git a/plugins/Dashboard/templates/dashboard.css b/plugins/Dashboard/templates/dashboard.css
index 6717152409..b81163da71 100644
--- a/plugins/Dashboard/templates/dashboard.css
+++ b/plugins/Dashboard/templates/dashboard.css
@@ -179,4 +179,4 @@ ul#widgetList {
}
#widgetChooser .widgetTop {
cursor:pointer;
-} \ No newline at end of file
+}