CC-3174 : showbuilder

fixing timezone calculations if browser/server is different.
This commit is contained in:
Naomi Aro 2012-02-27 20:14:12 +01:00
parent 28759a2d34
commit 564575d657
3 changed files with 15 additions and 6 deletions

View file

@ -25,13 +25,21 @@ var AIRTIME = (function(AIRTIME){
container,
thead = $("#show_builder_table thead"),
colspan = thead.find("th").length,
width = thead.find("tr:first").width();
width = thead.find("tr:first").width(),
message;
//if nothing is checked select the dragged item.
if (selected.length === 0) {
selected = $(this);
}
if (selected.length === 1) {
message = "Moving "+selected.length+" Item."
}
else {
message = "Moving "+selected.length+" Items."
}
container = $('<div/>').attr('id', 'draggingContainer')
.append('<tr/>')
.find("tr")
@ -40,7 +48,7 @@ var AIRTIME = (function(AIRTIME){
.attr("colspan", colspan)
.width(width)
.addClass("ui-state-highlight")
.append("Moving "+selected.length+" Items.")
.append(message)
.end()
.end();