Branch: Tag:

2009-06-30

2009-06-30 10:56:20 by 0

Request confirmation before restoring previous variable value. Implements
suggestion in [RT#13745].

Rev: server/config_interface/template:1.127
Rev: server/etc/modules/Variable.pmod/module.pmod:1.115
Rev: server/modules/configuration/config_tags.pike:1.203

1: - // $Id: module.pmod,v 1.114 2009/06/24 09:33:31 jonasw Exp $ + // $Id: module.pmod,v 1.115 2009/06/30 10:56:20 jonasw Exp $      #include <module.h>   #include <roxen.h>
66:    ) );    }    } -  m = ([ "href":def_url, ]); +  m = ([ "href" : def_url, +  "onclick" : "return confirm('" + LOCALE(0, "Are you sure you want " +  "to restore the default " +  "value?") + "');" ]);    return diff_button + " " +    Roxen.make_container( "a",m,    Roxen.make_container( button_tag, ([]),