-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
187 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
block('calendar').mix()(function() { | ||
return { | ||
block: 'popup', | ||
mods: { | ||
'has-calendar': true, | ||
target: 'anchor', | ||
theme: this.mods.theme | ||
} | ||
}; | ||
}); | ||
block('calendar')( | ||
js()(function() { | ||
return { val: this.ctx.val }; | ||
}) | ||
); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tadatuta
Member
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
module.exports = function(bh) { | ||
bh.match('calendar', function(ctx) { | ||
var mods = ctx.mods(); | ||
|
||
ctx.mix({ | ||
block: 'popup', | ||
mods: { | ||
'has-calendar': true, | ||
target: 'anchor', | ||
theme: mods.theme | ||
} | ||
}); | ||
ctx.js({ val: ctx.json().val }); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="calendar calendar_theme_islands i-bem popup popup_has-calendar popup_target_anchor popup_theme_islands" data-bem="{"calendar":{"months":["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],"weekdays":["пн","вт","ср","чт","пт","сб","вс"]}}"></div> | ||
<div class="calendar calendar_theme_islands i-bem" data-bem="{"calendar":{"months":["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],"weekdays":["пн","вт","ср","чт","пт","сб","вс"]}}"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
@tadatuta
I don't understand why this is. On project-sub with this bemhtml
html
generated with emtydata-bem
attribute:We have all of needed in
bemjson
:On project level fixed this with: