Commits

Anonymous committed 06c0626

Improved experience for iphone like devices.

Comments (0)

Files changed (2)

solace/static/solace.js

      support has problems with our markup. */
   makeLanguageSelectionPopup : function() {
     var tid = null;
-    var sel = $('ul.language_selection').bind('mouseover', function() {
+    function activate() {
       sel.addClass('hovered');
       if (tid != null) {
         window.clearInterval(tid);
         tid = null;
       }
-    }).bind('mouseout', function() {
-      tid = window.setTimeout(function() {
-        sel.removeClass('hovered');
-      }, 300);
-    }).removeClass('css_language_selection');
+    }
+    var sel = $('ul.language_selection')
+      .bind('mouseover', activate)
+      .bind('click', activate) /* for iphone like devices */
+      .bind('mouseout', function() {
+        tid = window.setTimeout(function() {
+          sel.removeClass('hovered');
+        }, 300);
+      })
+      .removeClass('css_language_selection');
   },
 
   /* reduce the API method boxes */

solace/templates/layout.html

 <!doctype html>
-{%- from '_helpers.html' import render_user %}
+{% from '_helpers.html' import render_user %}
 {%- block html_head -%}
 <title>{% block html_head_title %}{% if page_title %}{{ page_title
   }} | {% endif %}{{ settings.WEBSITE_TITLE|e }}{% endblock %}</title>