👽️ Incorpora modificaciones de la API
This commit is contained in:
parent
50abc73d8a
commit
c56cb256de
6 changed files with 11 additions and 8 deletions
|
|
@ -24,7 +24,7 @@ impl ModuleTrait for JQuery {
|
|||
}
|
||||
|
||||
fn actions(&self) -> Vec<Action> {
|
||||
vec![action!(ActionBeforeRenderPage => before_render_page)]
|
||||
vec![action!(actions::page::ActionBeforeRenderPage => before_render_page)]
|
||||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut service::web::ServiceConfig) {
|
||||
|
|
@ -33,11 +33,11 @@ impl ModuleTrait for JQuery {
|
|||
}
|
||||
|
||||
impl JQuery {
|
||||
pub fn add_jquery(rcx: &mut RenderContext) {
|
||||
pub fn add_in(rcx: &mut RenderContext) {
|
||||
rcx.set_param::<bool>(JQUERY_PARAM, true);
|
||||
}
|
||||
|
||||
pub fn remove_jquery(rcx: &mut RenderContext) {
|
||||
pub fn remove_from(rcx: &mut RenderContext) {
|
||||
rcx.set_param::<bool>(JQUERY_PARAM, false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue