⏪ Recupera la versión con valor propio en activos
This commit is contained in:
parent
4673b82a93
commit
f85a35b5f4
5 changed files with 33 additions and 25 deletions
|
|
@ -193,16 +193,16 @@ impl ComponentTrait for MegaMenu {
|
|||
}
|
||||
|
||||
fn prepare_component(&self, cx: &mut Context) -> PrepareMarkup {
|
||||
cx.alter(ContextOp::AddStyleSheet(StyleSheet::located(
|
||||
"/megamenu/css/menu.css?v=1.1.1",
|
||||
)))
|
||||
.alter(ContextOp::AddStyleSheet(StyleSheet::located(
|
||||
"/megamenu/css/menu-clean.css?v=1.1.1",
|
||||
)))
|
||||
.alter(ContextOp::AddJavaScript(JavaScript::located(
|
||||
"/megamenu/js/menu.min.js?v=1.1.1",
|
||||
)));
|
||||
JQuery::add_in(cx);
|
||||
cx.alter(ContextOp::AddStyleSheet(
|
||||
StyleSheet::located("/megamenu/css/menu.css").with_version("1.1.1"),
|
||||
))
|
||||
.alter(ContextOp::AddStyleSheet(
|
||||
StyleSheet::located("/megamenu/css/menu-clean.css").with_version("1.1.1"),
|
||||
))
|
||||
.alter(ContextOp::AddJavaScript(
|
||||
JavaScript::located("/megamenu/js/menu.min.js").with_version("1.1.1"),
|
||||
));
|
||||
JQuery.enable_jquery(cx);
|
||||
|
||||
let id = cx.required_id::<MegaMenu>(self.id());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue