Skip to content

Commit

Permalink
Misceneleous bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitmalina committed Oct 22, 2021
1 parent e685f35 commit 6bd3b02
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demos/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ table.list td {
position: absolute;
top: 13px;
left: 233px;
width: 880px;
right: 0px;
height: 38px;
padding: 4px;
background-color: transparent;
Expand Down
36 changes: 32 additions & 4 deletions demos/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(function () {
let w2utils_locale = sessionStorage.w2ui_demo_locale || w2utils.settings.locale.toLowerCase()
w2utils.locale( w2utils_locale )
w2utils.locale(w2utils_locale)
let last_hash
let conf = {
demo_layout: {
Expand Down Expand Up @@ -35,11 +35,39 @@ $(function () {
{ type: 'spacer' },
{ type: 'menu-radio', id: 'locale', icon: 'fa fa-language',
text: function (item) {
let el = this.get('locale:' + item.selected)
return 'Locale: ' + el.text
let el = this.get('locale:' + item.selected)
return el.text
},
selected: w2utils_locale,
items: ['az-az', 'ba-ba', 'bg-bg', 'ca-es', 'de-de', 'en-gb', 'en-us', 'es-es', 'es-mx', 'fr-fr', 'gl-es', 'hr-hr', 'hu-hu', 'id-id', 'it-it', 'ja-jp', 'ko-kr', 'lt-lt', 'nl-nl', 'no-no', 'pl-pl', 'pt-br', 'ru-ru', 'sk-sk', 'sl-si', 'tr-tr', 'zh-cn']
items: [
'az-az',
'ba-ba',
'bg-bg',
'ca-es',
'de-de',
{ id: 'en-gb', text: 'English (UK)' },
{ id: 'en-us', text: 'English (US)' },
'es-es',
'es-mx',
{ id: 'fr-fr', text: 'French' },
'gl-es',
'hr-hr',
'hu-hu',
'id-id',
'it-it',
'ja-jp',
'ko-kr',
'lt-lt',
'nl-nl',
'no-no',
'pl-pl',
'pt-br',
{ id: 'ru-ru', text: 'Russian' },
'sk-sk',
'sl-si',
'tr-tr',
'zh-cn'
]
},
],
onClick(event) {
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,6 @@ exports.build = gulp.series(tasks.build_es6, tasks.build)
exports.dev = tasks.watch
exports.clean = tasks.clean
exports.pack = tasks.pack
exports.less = gulp.series(tasks.clean, tasks.less)
exports.less = gulp.series(tasks.less)
exports.icons = gulp.series(tasks.icons, tasks.less)
exports.locales = tasks.locales

0 comments on commit 6bd3b02

Please sign in to comment.