Estandarizacióe "Placeholder" para al campo "Search" en los listados para el "Classic Designer"

Se cambio el texto del placeholder de los campos de busqueda
This commit is contained in:
marcelo.cuiza
2015-05-14 11:43:22 -04:00
parent 6172b33e1b
commit dc3188542f
8 changed files with 171 additions and 9 deletions

View File

@@ -6,6 +6,26 @@
<PAGED_TABLE_ID type="private"/>
<PAGED_TABLE_FAST_SEARCH type="FastSearch" label="@G::LoadTranslation(ID_SEARCH)"/>
<JS type="javascript"><![CDATA[
document.getElementById("form[PAGED_TABLE_FAST_SEARCH]").placeholder = "@G::LoadTranslation(ID_EMPTY_SEARCH)";
add_placeholder("form[PAGED_TABLE_FAST_SEARCH]","@G::LoadTranslation(ID_EMPTY_SEARCH)");
function add_placeholder (id, placeholder){
var el = document.getElementById(id);
el.placeholder = placeholder;
el.onfocus = function () {
if(this.value == this.placeholder) {
this.value = '';
el.style.cssText = '';
}
};
el.onblur = function () {
if(this.value.length == 0) {
this.value = this.placeholder;
el.style.cssText = 'color:#A9A9A9;';
}
};
el.onblur();
}
]]></JS>
</dynaForm>