Author: matevz
Date: Wed Jun 5 13:37:26 2013
New Revision: 1489867
URL: http://svn.apache.org/r1489867
Log:
Ref. #544 - fixes for phone issues
Modified:
bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js
bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
Modified: bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
URL:
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css?rev=1489867&r1=1489866&r2=1489867&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css Wed Jun 5
13:37:26 2013
@@ -332,6 +332,22 @@ pre {
margin-top: 5px;
margin-bottom: 5px;
}
+
+
+/*
+ workaround for -hidden/-visible buttons in a btn-group, which don't
+ play nicely with btn-group's :first-child pseudo element
+ (the first button always gets picked, regardless of visibility)
+*/
+#qct-inline-newticket {
+ margin-left: 0;
+ -webkit-border-bottom-left-radius: 4px;
+ border-bottom-left-radius: 4px;
+ -webkit-border-top-left-radius: 4px;
+ border-top-left-radius: 4px;
+ -moz-border-radius-bottomleft: 4px;
+ -moz-border-radius-topleft: 4px;
+}
#qct-inline-alert-cancel {
display: inline;
}
Modified: bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js
URL:
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js?rev=1489867&r1=1489866&r2=1489867&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js Wed Jun 5
13:37:26 2013
@@ -42,9 +42,13 @@ $( function () {
// resizing the window to a -desktop size when inline form is
// shown would result in the form disappearing (ok), but all other
// forms would still be disabled (not ok).
+ // NOTE - currently disabled due to certain phones resizing the
+ // window when the form controls are focused (e.g. input)
+/*
$(window).resize(function() {
qct_inline_close();
});
+*/
$('#qct-inline-newticket').click(function() {
$('#qct-inline-notice-success, #qct-inline-notice-error').hide();
@@ -175,8 +179,10 @@ $( function () {
$('#qct-inline-notice-error span').html(msg);
$('#qct-inline-notice-error').show({'duration': 400});
});
+
qct_clearui();
qct_inline_close();
+ $('body').animate({scrollTop: 0}, 250);
});
})
Modified:
bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
URL:
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html?rev=1489867&r1=1489866&r2=1489867&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
(original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
Wed Jun 5 13:37:26 2013
@@ -98,7 +98,7 @@
action="${search_handler or href.search()}"
method="get">
<div class="input-append">
- <input type="text" class="span3" id="q" name="q"
+ <input type="text" class="input-medium" id="q" name="q"
placeholder="Search all products. Try TracLinks."
value="${req.search_query}" />
<input py:for="name, value in extra_search_fields"
@@ -135,18 +135,17 @@
<py:choose test="">
<py:when test="qct">
- <div class="btn-group visible-phone pull-right">
- <a href="#" class="btn btn-primary dropdown-toggle"
id="qct-inline-newticket">
- <i class="icon-plus-sign icon-white"></i> <span
class="caret"></span>
- </a>
- </div>
-
- <div class="btn-group hidden-phone">
- <a href="#" class="btn btn-primary dropdown-toggle"
+ <div class="btn-group">
+ <a href="#" class="btn btn-primary dropdown-toggle
hidden-phone"
id="qct-newticket" data-animation="true"
data-html="true"
data-trigger="manual" data-toggle="dropdown">
<span>Create Ticket <span
class="caret"></span></span>
</a>
+ <a href="#" class="btn btn-primary dropdown-toggle
visible-phone"
+ id="qct-inline-newticket">
+ <i class="icon-plus-sign icon-white"></i> <span
class="caret"></span>
+ </a>
+
<div id="qct-box" class="dropdown-menu" py:choose="">
<div class="popover-title">
<h3>New Ticket</h3>