Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod: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>      // Locale macros   //<locale-token project="roxen_config"> LOCALE </locale-token>      #define LOCALE(X,Y) \    ([string](mixed)Locale.translate("roxen_config",roxenp()->locale->get(),X,Y))   
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:59:    m = ([ "href":diff_url,"target":"_new", ]);    diff_button =    Roxen.make_container( "a",m,    Roxen.make_container(    button_tag,    ([]),    LOCALE(474,"Show changes")    ) );    }    } -  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, ([]),    LOCALE(475, "Restore default value" )+    (oneliner||"") ) );      }      class Diff   {