diff options
author | friendica <info@friendica.com> | 2013-11-14 12:09:06 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-14 12:09:06 -0800 |
commit | e651ca8b07a1dd7083fd565c7b2403484390c3fe (patch) | |
tree | b19cb9b3cd42bd0bfb521e95e2c4cb96f7519acb /view | |
parent | ee629534d5245443152797bae81768680b5dda85 (diff) | |
parent | 3311fe481352e30206c5d9c593f158814be9ca0b (diff) | |
download | volse-hubzilla-e651ca8b07a1dd7083fd565c7b2403484390c3fe.tar.gz volse-hubzilla-e651ca8b07a1dd7083fd565c7b2403484390c3fe.tar.bz2 volse-hubzilla-e651ca8b07a1dd7083fd565c7b2403484390c3fe.zip |
Merge pull request #202 from git-marijus/master
make autocomplete better themable by adding an id
Diffstat (limited to 'view')
-rw-r--r-- | view/js/mod_connections.js | 3 | ||||
-rw-r--r-- | view/js/mod_message.js | 5 | ||||
-rw-r--r-- | view/js/mod_network.js | 1 | ||||
-rw-r--r-- | view/js/mod_poke.js | 3 | ||||
-rw-r--r-- | view/js/mod_sources.js | 3 | ||||
-rw-r--r-- | view/theme/redbasic/css/style.css | 28 |
6 files changed, 33 insertions, 10 deletions
diff --git a/view/js/mod_connections.js b/view/js/mod_connections.js index ed1577792..404010636 100644 --- a/view/js/mod_connections.js +++ b/view/js/mod_connections.js @@ -3,7 +3,8 @@ $(document).ready(function() { a = $("#contacts-search").autocomplete({ serviceUrl: baseurl + '/acl', minChars: 2, - width: 350, + width: 250, + id: 'contact-search-ac', }); a.setOptions({ autoSubmit: true, params: { type: 'a' }}); diff --git a/view/js/mod_message.js b/view/js/mod_message.js index e3318ce6b..82f60f46f 100644 --- a/view/js/mod_message.js +++ b/view/js/mod_message.js @@ -3,10 +3,11 @@ $(document).ready(function() { a = $("#recip").autocomplete({ serviceUrl: baseurl + '/acl', minChars: 2, - width: 350, + width: 250, + id: 'recip-ac', onSelect: function(value,data) { $("#recip-complete").val(data); - } + }, }); }); diff --git a/view/js/mod_network.js b/view/js/mod_network.js index ca910ae52..f63a57653 100644 --- a/view/js/mod_network.js +++ b/view/js/mod_network.js @@ -4,6 +4,7 @@ $(document).ready(function() { serviceUrl: baseurl + '/search_ac', minChars: 2, width: 250, + id: 'search-text-ac', }); }); diff --git a/view/js/mod_poke.js b/view/js/mod_poke.js index fa00ac2d5..edd53bb6a 100644 --- a/view/js/mod_poke.js +++ b/view/js/mod_poke.js @@ -3,7 +3,8 @@ $(document).ready(function() { a = $("#poke-recip").autocomplete({ serviceUrl: baseurl + '/acl', minChars: 2, - width: 350, + width: 250, + id: 'poke-recip-ac'; onSelect: function(value,data) { $("#poke-recip-complete").val(data); } diff --git a/view/js/mod_sources.js b/view/js/mod_sources.js index 140f13843..fda952cae 100644 --- a/view/js/mod_sources.js +++ b/view/js/mod_sources.js @@ -3,7 +3,8 @@ $(document).ready(function() { a = $("#id_name").autocomplete({ serviceUrl: baseurl + '/acl', minChars: 2, - width: 350, + width: 250, + id: 'id-name-ac', onSelect: function(value,data) { $("#id_xchan").val(data); } diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index e6fa952d5..300ae881b 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -781,6 +781,12 @@ footer { height: 120px; padding: 10px; } + +#contacts-search { + font-size: 1em; + width: 300px; +} + #contacts-search-end { margin-bottom: 10px; } @@ -2894,14 +2900,26 @@ div.jGrowl div.info { width:100px; } -#recip { - +#nav-search-text-ac .autocomplete { + position: fixed; + top: 24px; + border: 1px solid $nav_bg_2; + border-top: none; } -.autocomplete { - color: $font_colour; - border: 1px solid $nav_bg_1; +#search-text-ac .autocomplete, +#recip-ac .autocomplete, +#poke-recip-ac .autocomplete, +#id-name-ac .autocomplete, +#contact-search-ac .autocomplete { + margin-top: 2px; + margin-left: $radiuspx; + border: 1px solid #666; border-top: none; +} + +.autocomplete { + color: $font_colour; background: #FFF; cursor: pointer; text-align: left; |