From 95e308e0463ced3b222bce62a8369370a67a9e7c Mon Sep 17 00:00:00 2001 From: devin chen Date: Wed, 3 Apr 2013 15:03:05 +0800 Subject: [PATCH] minor update --- app/assets/javascripts/orbitdesktop.js | 13 +++---------- app/assets/stylesheets/desktop/desktop-select2.css | 3 ++- app/assets/stylesheets/desktop/desktop-select2.scss | 1 + 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index 7ab2a07ce..8f7602469 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -867,9 +867,7 @@ var orbitDesktop = function(dom){ if(tile.data_category == "app") $li = $('
  • '+tile.title+'

  • '); else - $li = $('
  • Loading

    '+tile.title+'

  • '); - - + $li = $('
  • Loading

    '+tile.title+'

  • '); $ul.append($li); }) @@ -1670,14 +1668,9 @@ var orbitDesktop = function(dom){ return; } else { $('.sdm').hover(function(){ - $(this).stop(1,1).toggleClass('thmc2 thmtxt'); + $(this).stop(1,1).addClass('thmc2 thmtxt'); }, function(){ - $(this).stop(1,1).toggleClass('thmc2 thmtxt'); - }); - $('.sdm').find('a').hover(function(){ - $(this).stop(1,1).toggleClass('thmc2 thmtxt'); - }, function(){ - $(this).stop(1,1).toggleClass('thmc2 thmtxt'); + $(this).stop(1,1).removeClass('thmc2 thmtxt'); }); } }; diff --git a/app/assets/stylesheets/desktop/desktop-select2.css b/app/assets/stylesheets/desktop/desktop-select2.css index 3703a42bb..7f3d39444 100644 --- a/app/assets/stylesheets/desktop/desktop-select2.css +++ b/app/assets/stylesheets/desktop/desktop-select2.css @@ -395,7 +395,8 @@ disabled look for disabled choices in the results dropdown .select2-offscreen { position: absolute; - left: -10000px; } + left: -10000px; + top: 0; } /* Retina-ize icons */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { diff --git a/app/assets/stylesheets/desktop/desktop-select2.scss b/app/assets/stylesheets/desktop/desktop-select2.scss index 66d01e723..17c90ef72 100644 --- a/app/assets/stylesheets/desktop/desktop-select2.scss +++ b/app/assets/stylesheets/desktop/desktop-select2.scss @@ -425,6 +425,7 @@ disabled look for disabled choices in the results dropdown .select2-offscreen { position: absolute; left: -10000px; + top: 0; } /* Retina-ize icons */