Index: l10n_client.css
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_client/Attic/l10n_client.css,v
retrieving revision 1.6.2.1
diff -u -p -r1.6.2.1 l10n_client.css
--- l10n_client.css 20 Apr 2010 21:52:30 -0000 1.6.2.1
+++ l10n_client.css 20 Apr 2010 22:13:48 -0000
@@ -1,4 +1,4 @@
-/* $Id: l10n_client.css,v 1.6.2.1 2010/04/20 21:52:30 goba Exp $ */
+/* $Id: l10n_client.css,v 1.6 2008/09/09 10:48:20 goba Exp $ */
/* width percentages add to 99% rather than 100% to prevent float
overflows from occurring in an unnamed browser that can't decide
@@ -121,8 +121,7 @@ how it wants to round. */
#l10n-client #l10n-client-search-form .form-item,
#l10n-client #l10n-client-search-form input.form-text,
- #l10n-client #l10n-client-search-form #search-filter-go,
- #l10n-client #l10n-client-search-form #search-filter-clear {
+ #l10n-client #l10n-client-search-form #l10n-client-search-filter-clear {
display:inline;
vertical-align:middle;
}
@@ -136,7 +135,7 @@ how it wants to round. */
width:80%;
}
- #l10n-client #l10n-client-search-form #search-filter-clear {
+ #l10n-client #l10n-client-search-form #l10n-client-search-filter-clear {
width:10%;
margin:0em;
}
Index: l10n_client.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_client/Attic/l10n_client.js,v
retrieving revision 1.10.2.5
diff -u -p -r1.10.2.5 l10n_client.js
--- l10n_client.js 20 Apr 2010 21:50:58 -0000 1.10.2.5
+++ l10n_client.js 20 Apr 2010 22:13:48 -0000
@@ -1,4 +1,4 @@
-// $Id: l10n_client.js,v 1.10.2.5 2010/04/20 21:50:58 goba Exp $
+// $Id: l10n_client.js,v 1.10.2.4 2010/04/20 14:23:58 goba Exp $
// Store all l10n_client related data + methods in its own object
jQuery.extend(Drupal, {
@@ -17,12 +17,12 @@ jQuery.extend(Drupal, {
if(userSelection.length > 0) {
Drupal.l10nClient.filter(userSelection);
Drupal.l10nClient.toggle(1);
- $('#l10n-client #edit-search').focus();
+ $('#l10n-client .string-search').focus();
} else {
if($('#l10n-client').is('.hidden')) {
Drupal.l10nClient.toggle(1);
if(!$.browser.safari) {
- $('#l10n-client #edit-search').focus();
+ $('#l10n-client .string-search').focus();
}
} else {
Drupal.l10nClient.toggle(0);
@@ -70,13 +70,13 @@ jQuery.extend(Drupal, {
if(search == false || search == '') {
$('#l10n-client #search-filter-clear').focus();
$('#l10n-client-string-select li').show();
- $('#l10n-client #edit-search').val('');
- $('#l10n-client #edit-search').focus();
+ $('#l10n-client .string-search').val('');
+ $('#l10n-client .string-search').focus();
} else {
if(search.length > 0) {
$('#l10n-client-string-select li').hide();
$('#l10n-client-string-select li:contains('+search+')').show();
- $('#l10n-client #edit-search').val(search);
+ $('#l10n-client .string-search').val(search);
}
}
}
@@ -126,24 +126,24 @@ Drupal.behaviors.l10nClient = function (
});
// Copy source text to translation field on button click.
- $('#l10n-client-form #edit-copy').click(function() {
+ $('#l10n-client-form .edit-copy').click(function() {
$('#l10n-client-form .translation-target').val($('#l10n-client-string-editor .source-text').text());
});
// Clear translation field on button click.
- $('#l10n-client-form #edit-clear').click(function() {
+ $('#l10n-client-form .edit-clear').click(function() {
$('#l10n-client-form .translation-target').val('');
});
// Register keybindings using jQuery hotkeys
if($.hotkeys) {
$.hotkeys.add(Drupal.l10nClient.keys['toggle'], function(){Drupal.l10nClient.key('toggle')});
- $.hotkeys.add(Drupal.l10nClient.keys['clear'], {target:'#l10n-client #edit-search', type:'keyup'}, function(){Drupal.l10nClient.key('clear')});
+ $.hotkeys.add(Drupal.l10nClient.keys['clear'], {target:'#l10n-client .string-search', type:'keyup'}, function(){Drupal.l10nClient.key('clear')});
}
// Custom listener for l10n_client livesearch
- $('#l10n-client #edit-search').keyup(function(key) {
- Drupal.l10nClient.filter($('#l10n-client #edit-search').val());
+ $('#l10n-client .string-search').keyup(function(key) {
+ Drupal.l10nClient.filter($('#l10n-client .string-search').val());
});
// Clear search
Index: l10n_client.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_client/Attic/l10n_client.module,v
retrieving revision 1.22.2.7
diff -u -p -r1.22.2.7 l10n_client.module
--- l10n_client.module 20 Apr 2010 22:03:45 -0000 1.22.2.7
+++ l10n_client.module 20 Apr 2010 22:13:49 -0000
@@ -1,5 +1,5 @@
'hidden', '#value' => 'default');
$form['copy'] = array(
- '#value' => "",
+ '#value' => "",
);
$form['clear'] = array(
- '#value' => "",
+ '#value' => "",
);
return $form;
@@ -400,9 +400,10 @@ function l10n_client_search_form() {
$form = array();
$form['search'] = array(
'#type' => 'textfield',
+ '#attributes' => array('class' => 'string-search'),
);
$form['clear-button'] = array(
- '#value' => "",
+ '#value' => "",
);
return $form;
}