Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
bf9eace2
Commit
bf9eace2
authored
Jun 28, 2016
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Drop jquerymobile dependency
parent
2689b8ab
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
44 deletions
+24
-44
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_css.xml
.../PathTemplateItem/web_page_module/rjs_gadget_erp5_css.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_sorteditor_js.js
...lateItem/web_page_module/rjs_gadget_erp5_sorteditor_js.js
+5
-16
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_sorteditor_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_sorteditor_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
...teItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
+15
-24
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_css.xml
View file @
bf9eace2
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
952.1
0134.56146.36130
</string>
</value>
<value>
<string>
952.1
2715.63499.47547
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1467
039078.03
</float>
<float>
1467
193792.99
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_sorteditor_js.js
View file @
bf9eace2
/*jslint indent: 2, maxerr: 3, nomen: true */
/*jslint indent: 2, maxerr: 3, nomen: true */
/*global window, document, rJS, RSVP, Handlebars,
$,
loopEventListener*/
/*global window, document, rJS, RSVP, Handlebars, loopEventListener*/
(
function
(
window
,
document
,
rJS
,
RSVP
,
Handlebars
,
$
,
loopEventListener
)
{
(
function
(
window
,
document
,
rJS
,
RSVP
,
Handlebars
,
loopEventListener
)
{
"
use strict
"
;
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
),
var
gadget_klass
=
rJS
(
window
),
sort_item_source
=
gadget_klass
.
__template_element
sort_item_source
=
gadget_klass
.
__template_element
...
@@ -105,16 +105,11 @@
...
@@ -105,16 +105,11 @@
return
RSVP
.
all
(
list
);
return
RSVP
.
all
(
list
);
})
})
.
push
(
function
(
all_result
)
{
.
push
(
function
(
all_result
)
{
var
innerHTML
=
""
,
var
innerHTML
=
""
;
select_list
;
for
(
i
=
0
;
i
<
all_result
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
all_result
.
length
;
i
+=
1
)
{
innerHTML
+=
all_result
[
i
];
innerHTML
+=
all_result
[
i
];
}
}
gadget
.
props
.
element
.
querySelector
(
"
.sort_item_container
"
).
innerHTML
=
innerHTML
;
gadget
.
props
.
element
.
querySelector
(
"
.sort_item_container
"
).
innerHTML
=
innerHTML
;
select_list
=
gadget
.
props
.
element
.
querySelector
(
"
.sort_item_container
"
).
querySelectorAll
(
"
select
"
);
for
(
i
=
0
;
i
<
select_list
.
length
;
i
+=
1
)
{
$
(
select_list
[
i
]).
selectmenu
();
}
});
});
})
})
.
declareService
(
function
()
{
.
declareService
(
function
()
{
...
@@ -175,14 +170,8 @@
...
@@ -175,14 +170,8 @@
})
})
.
push
(
function
(
template
)
{
.
push
(
function
(
template
)
{
var
tmp
=
document
.
createElement
(
"
div
"
),
var
tmp
=
document
.
createElement
(
"
div
"
),
container
=
gadget
.
props
.
element
.
querySelector
(
"
.sort_item_container
"
),
container
=
gadget
.
props
.
element
.
querySelector
(
"
.sort_item_container
"
);
select_list
,
i
;
tmp
.
innerHTML
=
template
;
tmp
.
innerHTML
=
template
;
select_list
=
tmp
.
querySelectorAll
(
"
select
"
);
for
(
i
=
0
;
i
<
select_list
.
length
;
i
+=
1
)
{
$
(
select_list
[
i
]).
selectmenu
();
}
container
.
appendChild
(
tmp
.
querySelector
(
"
div
"
));
container
.
appendChild
(
tmp
.
querySelector
(
"
div
"
));
});
});
}
}
...
@@ -200,4 +189,4 @@
...
@@ -200,4 +189,4 @@
);
);
});
});
}(
window
,
document
,
rJS
,
RSVP
,
Handlebars
,
$
,
loopEventListener
));
}(
window
,
document
,
rJS
,
RSVP
,
Handlebars
,
loopEventListener
));
\ No newline at end of file
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_sorteditor_js.xml
View file @
bf9eace2
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
49.63919.28849
.11281
</string>
</value>
<value>
<string>
9
52.11593.64274
.11281
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
58739459.09
</float>
<float>
14
67126398.3
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
View file @
bf9eace2
...
@@ -78,9 +78,17 @@
...
@@ -78,9 +78,17 @@
///////////////////////////////////////////////
// Extend
///////////////////////////////////////////////
.hide_text(@width: 3em) {
// https://css-tricks.com/forums/topic/hide-text-but-not-the-before-pseudo-class/
width: @width;
overflow: hidden;
text-indent: -9999px;
white-space: nowrap;
}
...
@@ -531,11 +539,7 @@ div[data-gadget-scope='panel'] {
...
@@ -531,11 +539,7 @@ div[data-gadget-scope='panel'] {
button, a {
button, a {
// https://css-tricks.com/forums/topic/hide-text-but-not-the-before-pseudo-class/
.hide_text();
width: 3em;
overflow: hidden;
text-indent: -9999px;
white-space: nowrap;
background-color: #252525;
background-color: #252525;
&::before {
&::before {
...
@@ -670,11 +674,7 @@ div[data-gadget-scope='editor_panel'] {
...
@@ -670,11 +674,7 @@ div[data-gadget-scope='editor_panel'] {
button, a {
button, a {
// https://css-tricks.com/forums/topic/hide-text-but-not-the-before-pseudo-class/
.hide_text();
width: 3em;
overflow: hidden;
text-indent: -9999px;
white-space: nowrap;
background-color: #252525;
background-color: #252525;
&::before {
&::before {
...
@@ -739,10 +739,7 @@ div[data-gadget-scope='header'] .ui-header {
...
@@ -739,10 +739,7 @@ div[data-gadget-scope='header'] .ui-header {
// Default size
// Default size
width: 8em;
width: 8em;
@media @smartphone {
@media @smartphone {
width: 3em;
.hide_text();
overflow: hidden;
text-indent: -9999px;
white-space: nowrap;
}
}
&::before {
&::before {
...
@@ -1104,10 +1101,7 @@ div[data-gadget-scope='erp5_searchfield'] {
...
@@ -1104,10 +1101,7 @@ div[data-gadget-scope='erp5_searchfield'] {
}
}
@media @smartphone {
@media @smartphone {
width: 2em;
.hide_text(@width: 2em);
overflow: hidden;
text-indent: -9999px;
white-space: nowrap;
}
}
&::before {
&::before {
...
@@ -1287,10 +1281,7 @@ div[data-gadget-scope='erp5_searchfield'] {
...
@@ -1287,10 +1281,7 @@ div[data-gadget-scope='erp5_searchfield'] {
}
}
@media @smartphone {
@media @smartphone {
width: 2em;
.hide_text(@width: 2em);
overflow: hidden;
text-indent: -9999px;
white-space: nowrap;
}
}
&::before {
&::before {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment