RamiroCruzo / freearc

Automatically exported from code.google.com/p/freearc
0 stars 0 forks source link

Change "Output archive" label depending on archive existence #389

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Change label either to Create archive or Add to archive in order to prevent 
accidential adding to existing archive. Optionally, change its color too. The 
probable htmlarc plugin code:

code("add-dialog", :: {
  $(output-archive).onChange(:: {
    $(output-archive-label).value = fileExists($(output-archive).value)? "2001 Add to" : "2002 Create"
})})

i18n("rus", 2001, "Добавить к");
i18n("rus", 2002, "Создать");
i18n("ukr", 2001, "...");

Original issue reported on code.google.com by bulat.zi...@gmail.com on 24 Jul 2014 at 5:56