File tree Expand file tree Collapse file tree 6 files changed +9
-22
lines changed
mobile-war/src/main/java/org/silverpeas/mobile Expand file tree Collapse file tree 6 files changed +9
-22
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,6 @@ public class NavigationMenu extends Composite implements PageEventHandler {
87
87
@ UiField TextBox search ;
88
88
@ UiField AvatarUpload avatar ;
89
89
90
- @ UiField
91
- AnchorElement searchButton ;
92
-
93
90
@ UiField (provided = true ) protected ApplicationMessages msg = null ;
94
91
95
92
@ UiField UnorderedList listApplications ;
@@ -128,8 +125,8 @@ public NavigationMenu() {
128
125
iconUserCalendar .setInnerHTML (resources .usercalendar ().getText ());
129
126
iconInbox .setInnerHTML (resources .inbox ().getText ());
130
127
iconShareBox .setInnerHTML (resources .sharebox ().getText ());
131
- searchButton .setInnerHTML (resources .search ().getText ());
132
128
EventBus .getInstance ().addHandler (AbstractPageEvent .TYPE , this );
129
+ search .getElement ().setAttribute ("placeholder" , msg .search ());
133
130
}
134
131
135
132
public void setPersonalApps (List <ApplicationInstanceDTO > applicationInstanceDTOS ) {
@@ -206,11 +203,6 @@ protected void search(KeyDownEvent event) {
206
203
}
207
204
}
208
205
209
- /*@UiHandler("searchButton")
210
- protected void searchIos(ClickEvent event) {
211
- SpMobil.search(search.getText());
212
- }*/
213
-
214
206
@ UiHandler ("home" )
215
207
protected void goHome (ClickEvent event ) {
216
208
goHome ();
Original file line number Diff line number Diff line change 39
39
40
40
<div id =" menu-search" >
41
41
<g : TextBox ui : field =" search" styleName =" searchBox" />
42
- <a ui : field =" searchButton" class =" searchButton" ></a >
43
42
</div >
44
43
45
44
<ul id =" navmenu-panel" >
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public interface ApplicationMessages extends Messages {
78
78
@ DefaultMessage ("Discussions" )
79
79
SafeHtml tchat ();
80
80
81
- @ DefaultMessage ("Go " )
81
+ @ DefaultMessage ("Rechercher " )
82
82
String search ();
83
83
84
84
@ DefaultMessage ("Retour" )
Original file line number Diff line number Diff line change 42
42
43
43
home =Home
44
44
tchat =Messaging
45
- search =Go
45
+ search =Search
46
46
back =Back
47
47
usercalendar = Calendar
48
48
Original file line number Diff line number Diff line change 43
43
44
44
home =Accueil
45
45
tchat =Discussions
46
- search =Go
46
+ search =Rechercher
47
47
usercalendar =Agenda
48
48
49
49
back =Retour
Original file line number Diff line number Diff line change @@ -1909,25 +1909,21 @@ textarea.ui-input-text {
1909
1909
.searchBox {
1910
1910
border : 1px solid # d3d3d3 ;
1911
1911
border-radius : 3px ;
1912
- width : calc ( 100% - 4em );
1913
- background-color : var (--white );
1912
+ width : calc ( 100% - 1em );
1914
1913
color : # 666 ;
1915
1914
padding : 5px ;
1916
1915
outline-style : none;
1917
1916
height : 1.5em ;
1918
- }
1919
-
1920
- .searchButton svg {
1921
- width : 2em ;
1922
- height : 2em ;
1923
- display : inline-block;
1924
- position : absolute;
1917
+ background-color : var (--white );
1925
1918
}
1926
1919
1927
1920
# menu-search {
1928
1921
background : # efefef ;
1929
1922
padding : 1em ;
1923
+ padding-left : 2em ;
1924
+ margin-left : 0.5em ;
1930
1925
border-top : 1px solid # d3d3d3 ;
1926
+ background : 0px 1.5em url ('icons/search.svg' ) no-repeat;
1931
1927
}
1932
1928
1933
1929
.bloc-actu-vignette , .bloc-actu-content {
You can’t perform that action at this time.
0 commit comments