alecpl
2012-03-08 85f11f01373738ad0c1a8660b15b4f3bafe836d7
- Larry: Fix decorated selects in Opera


1 files modified
8 ■■■■ changed files
skins/larry/ui.js 8 ●●●● patch | view | raw | blame | history
skins/larry/ui.js
@@ -176,11 +176,16 @@
    $('.tabbed').each(function(idx, elem){ init_tabs(elem); })
    // decorate select elements
    if (!bw.opera) {
      $('select.decorated').each(function(){
      if (bw.opera) {
        $(this).removeClass('decorated');
        return;
      }
        var title = $('option', this).first().text();
        if ($('option:selected', this).val() != '')
          title = $('option:selected', this).text();
        var select = $(this)
          .change(function(){
            var val = $('option:selected', this).text();
@@ -195,7 +200,6 @@
        select.parent().css('position', 'relative');
      });
    }
    $(document.body)
      .bind('mouseup', body_mouseup)