PM-2694
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:
@@ -9,7 +9,27 @@
|
||||
<inputdocsEdit type="private" defaultValue="../inputdocs/inputdocs_Edit"/>
|
||||
<inputdocsDelete type="private" defaultValue="../inputdocs/inputdocs_Delete"/>
|
||||
<js type="javascript" replaceTags="1"><![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();
|
||||
}
|
||||
var currentPagedTable = @#PAGED_TABLE_ID;
|
||||
function inputdocsAdd(){//alert('@G::encryptlink(@#inputdocsEdit)?PRO_UID=@%PRO_UID');
|
||||
popupWindow('@G::LoadTranslation(ID_NEW_INPUTDOCS)', '@G::encryptlink(@#inputdocsEdit)?PRO_UID=@%PRO_UID' , 500, 410);
|
||||
|
||||
Reference in New Issue
Block a user