juninho12 / freearc

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

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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