How to change the "Reset" text of the button (col [" edittype "] =" file "), when we edit (or change) the uploaded file.

QuestionsHow to change the "Reset" text of the button (col [" edittype "] =" file "), when we edit (or change) the uploaded file.
Michael Leger asked 4 weeks ago

Hi,
When I upload a file to a cell with the option “$ col [” edittype “] =” file “;”, then I want to change the file (edit) and a button with the text “Reset” is shown.

How can I change the text of that button?

 

please, thank you very much in advance..

Mhiker

3 Answers
Abu Ghufran Staff answered 3 weeks ago

Currently it is controlled from lib\js\jqgrid\js\i18n\grid.locale-en.js

jQuery.jgrid.search.Reset

However if you change it, it will also change in search dialog.

If you want some different text, you can search ‘jQuery.jgrid.search.Reset’ and replace it with your text.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff replied 3 weeks ago

If you want some different text, you can search in lib/inc/jqgrid_dist.php file ‘jQuery.jgrid.search.Reset’ and replace it with your text.

Michael Leger answered 3 weeks ago

Hi Abu,

Finally, and as indicated in your message, i could change the button text. 
But this is done by editing the file "jqgrid_dist.php" and in the function "function link_upload (el, field)":
Change the line "jQuery (el) .parent (). append (" <input type='button' value='Reset' onclick..." by "value='Cambiar Adjunto' onclick..."

Thanks a lot Abu !!


Abu Ghufran Staff answered 3 weeks ago

There are 2 places to be replaced. Make sure you replace all occurrences of ‘jQuery.jgrid.search.Reset’.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

0 + 19 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?