Skip to content

Commit

Permalink
Merge branch '1.4.0' into 1.4.0-features
Browse files Browse the repository at this point in the history
  • Loading branch information
integry committed Oct 24, 2011
2 parents 57ce709 + 7b942d4 commit a2a6b91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions public/javascript/backend/Backend.js
Expand Up @@ -1678,11 +1678,11 @@ Backend.SelectPopup.prototype = {
}
},

getSelectedObject: function(objectID, downloadable)
getSelectedObject: function(objectID, downloadable, indicator)
{
this.objectID = objectID;
this.downloadable = downloadable;
this.onObjectSelect.call(this, objectID, downloadable);
this.onObjectSelect.call(this, objectID, downloadable, indicator);
}
}

Expand Down
11 changes: 7 additions & 4 deletions public/javascript/backend/Product.js
Expand Up @@ -173,25 +173,28 @@ Backend.Product =
{
if ($('productIndicator_' + id))
{
Element.show($('productIndicator_' + id));
var indicator = $('productIndicator_' + id);
}
else if (e)
{
var indicator = Event.element(e).parentNode.down('.progressIndicator');
if (indicator)
{
indicator.show();

// ugly hack
setTimeout(function() { indicator.hide() }, 5000);
}
}

if (indicator)
{
Element.show(indicator);
}

if (window.opener && window.opener.selectProductPopup)
{
var downloadable = parseInt(e.target.up('tr').down(".cell_hiddenType").innerHTML) == 1;

window.opener.selectProductPopup.getSelectedObject(id, downloadable);
window.opener.selectProductPopup.getSelectedObject(id, downloadable, indicator);
}
else
{
Expand Down

0 comments on commit a2a6b91

Please sign in to comment.