summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-09-12 08:53:24 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-09-12 08:53:24 -0700
commit1d40c77c4c05a85fbf6bbb96820fb98cbaa989eb (patch)
treef9f6976e7f1f4153814a25a60ec30705a4dd0c5b
parent42454cad5afc7f78b557766f4182299327dee9b1 (diff)
Update the organize module to use the release version of jquery Selectable. Unfortunately this does not have the functionality to select additional thumbnails using the ctrl or alt-keys, it is preferable to forking the Selectable component. This functionality should arrive with ui.jquery 1.8.x
-rw-r--r--modules/organize/css/organize.css5
-rw-r--r--modules/organize/js/organize.js8
2 files changed, 7 insertions, 6 deletions
diff --git a/modules/organize/css/organize.css b/modules/organize/css/organize.css
index 15b5538d..b1cef33c 100644
--- a/modules/organize/css/organize.css
+++ b/modules/organize/css/organize.css
@@ -102,12 +102,13 @@
width: 9em;
}
-.gOrganizeMicroThumbGridCell.ui-state-selected {
+.gOrganizeMicroThumbGridCell.ui-selecting,
+.gOrganizeMicroThumbGridCell.ui-selected {
margin: 2px;
border: 2px solid #13A;
}
-.ui-selectable-lasso {
+.ui-selectable-helper {
z-index: 2000 !important;
border: 1px dashed #00F;
opacity: 0.25;
diff --git a/modules/organize/js/organize.js b/modules/organize/js/organize.js
index c30f89e0..7d204708 100644
--- a/modules/organize/js/organize.js
+++ b/modules/organize/js/organize.js
@@ -1,12 +1,12 @@
(function($) {
$.organize = {
micro_thumb_draggable: {
- handle: ".ui-state-selected",
+ handle: ".ui-selected",
distance: 10,
cursorAt: { left: -10, top: -10},
appendTo: "#gOrganizeMicroThumbPanel",
helper: function(event, ui) {
- var selected = $(".ui-draggable.ui-state-selected img");
+ var selected = $(".ui-draggable.ui-selected img");
if (selected.length) {
var set = $('<div class="gDragHelper"></div>')
.css({
@@ -37,7 +37,7 @@
},
start: function(event, ui) {
- $("#gOrganizeMicroThumbPanel .ui-state-selected").hide();
+ $("#gOrganizeMicroThumbPanel .ui-selected").hide();
},
drag: function(event, ui) {
@@ -80,7 +80,7 @@
greedy: true,
drop: function(event, ui) {
if ($(event.target).hasClass("gViewOnly")) {
- $(".ui-state-selected").show();
+ $(".ui-selected").show();
$(".gOrganizeMicroThumbGridCell").css("borderStyle", "none");
} else {
$.organize.do_drop({