Commit bf9eace2 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Drop jquerymobile dependency

parent 2689b8ab
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>952.10134.56146.36130</string> </value>
<value> <string>952.12715.63499.47547</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1467039078.03</float>
<float>1467193792.99</float>
<string>UTC</string>
</tuple>
</state>
......
/*jslint indent: 2, maxerr: 3, nomen: true */
/*global window, document, rJS, RSVP, Handlebars, $, loopEventListener*/
(function (window, document, rJS, RSVP, Handlebars, $, loopEventListener) {
/*global window, document, rJS, RSVP, Handlebars, loopEventListener*/
(function (window, document, rJS, RSVP, Handlebars, loopEventListener) {
"use strict";
var gadget_klass = rJS(window),
sort_item_source = gadget_klass.__template_element
......@@ -105,16 +105,11 @@
return RSVP.all(list);
})
.push(function (all_result) {
var innerHTML = "",
select_list;
var innerHTML = "";
for (i = 0; i < all_result.length; i += 1) {
innerHTML += all_result[i];
}
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 () {
......@@ -175,14 +170,8 @@
})
.push(function (template) {
var tmp = document.createElement("div"),
container = gadget.props.element.querySelector(".sort_item_container"),
select_list,
i;
container = gadget.props.element.querySelector(".sort_item_container");
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"));
});
}
......@@ -200,4 +189,4 @@
);
});
}(window, document, rJS, RSVP, Handlebars, $, loopEventListener));
\ No newline at end of file
}(window, document, rJS, RSVP, Handlebars, loopEventListener));
\ No newline at end of file
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>949.63919.28849.11281</string> </value>
<value> <string>952.11593.64274.11281</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1458739459.09</float>
<float>1467126398.3</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -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'] {
button, a {
// https://css-tricks.com/forums/topic/hide-text-but-not-the-before-pseudo-class/
width: 3em;
overflow: hidden;
text-indent: -9999px;
white-space: nowrap;
.hide_text();
background-color: #252525;
&::before {
......@@ -670,11 +674,7 @@ div[data-gadget-scope='editor_panel'] {
button, a {
// https://css-tricks.com/forums/topic/hide-text-but-not-the-before-pseudo-class/
width: 3em;
overflow: hidden;
text-indent: -9999px;
white-space: nowrap;
.hide_text();
background-color: #252525;
&::before {
......@@ -739,10 +739,7 @@ div[data-gadget-scope='header'] .ui-header {
// Default size
width: 8em;
@media @smartphone {
width: 3em;
overflow: hidden;
text-indent: -9999px;
white-space: nowrap;
.hide_text();
}
&::before {
......@@ -1104,10 +1101,7 @@ div[data-gadget-scope='erp5_searchfield'] {
}
@media @smartphone {
width: 2em;
overflow: hidden;
text-indent: -9999px;
white-space: nowrap;
.hide_text(@width: 2em);
}
&::before {
......@@ -1287,10 +1281,7 @@ div[data-gadget-scope='erp5_searchfield'] {
}
@media @smartphone {
width: 2em;
overflow: hidden;
text-indent: -9999px;
white-space: nowrap;
.hide_text(@width: 2em);
}
&::before {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment