Skip to content

Commit

Permalink
Recompiled JS and CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
mrg2001 committed May 30, 2019
1 parent 525bae4 commit 8191873
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 17 deletions.
2 changes: 2 additions & 0 deletions dist/w2ui-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,8 @@ button.w2ui-btn-small:focus:before {
.w2ui-form input[type=radio] {
margin-top: 4px;
margin-bottom: 4px;
width: 14px;
height: 14px;
}
.w2ui-form input[type=checkbox].w2ui-toggle {
margin: 0px;
Expand Down
2 changes: 1 addition & 1 deletion dist/w2ui-dark.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/w2ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,8 @@ button.w2ui-btn-small:focus:before {
.w2ui-form input[type=radio] {
margin-top: 4px;
margin-bottom: 4px;
width: 14px;
height: 14px;
}
.w2ui-form input[type=checkbox].w2ui-toggle {
margin: 0px;
Expand Down
27 changes: 16 additions & 11 deletions dist/w2ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -6734,7 +6734,7 @@ w2utils.event = {
if (edata.isCancelled === true) return false;
// default behaviour
this.hasFocus = true;
$(this.box).find('.w2ui-inactive').removeClass('w2ui-inactive');
$(this.box).removeClass('w2ui-inactive').find('.w2ui-inactive').removeClass('w2ui-inactive');
setTimeout(function () {
var $input = $(obj.box).find('#grid_'+ obj.name + '_focus');
if (!$input.is(':focus')) $input.focus();
Expand All @@ -6749,7 +6749,7 @@ w2utils.event = {
if (edata.isCancelled === true) return false;
// default behaviour
this.hasFocus = false;
$(this.box).find('.w2ui-selected').addClass('w2ui-inactive');
$(this.box).addClass('w2ui-inactive').find('.w2ui-selected').addClass('w2ui-inactive');
$(this.box).find('.w2ui-selection').addClass('w2ui-inactive');
// event after
this.trigger($.extend(edata, { phase: 'after' }));
Expand Down Expand Up @@ -8057,7 +8057,7 @@ w2utils.event = {
if ($(this.box).find('#grid_'+ this.name +'_body').length > 0) {
$(this.box)
.removeAttr('name')
.removeClass('w2ui-reset w2ui-grid')
.removeClass('w2ui-reset w2ui-grid w2ui-inactive')
.html('');
}
this.box = box;
Expand Down Expand Up @@ -8090,7 +8090,7 @@ w2utils.event = {
// insert elements
$(this.box)
.attr('name', this.name)
.addClass('w2ui-reset w2ui-grid')
.addClass('w2ui-reset w2ui-grid w2ui-inactive')
.html('<div class="w2ui-grid-box">'+
' <div id="grid_'+ this.name +'_header" class="w2ui-grid-header"></div>'+
' <div id="grid_'+ this.name +'_toolbar" class="w2ui-grid-toolbar"></div>'+
Expand Down Expand Up @@ -8495,7 +8495,7 @@ w2utils.event = {
if ($(this.box).find('#grid_'+ this.name +'_body').length > 0) {
$(this.box)
.removeAttr('name')
.removeClass('w2ui-reset w2ui-grid')
.removeClass('w2ui-reset w2ui-grid w2ui-inactive')
.html('');
}
delete w2ui[this.name];
Expand Down Expand Up @@ -19744,7 +19744,10 @@ var w2prompt = function (label, title, callBack) {
input = '<input id="' + field.field + '" name="' + field.field + '" class="w2ui-input" type = "password" ' + field.html.attr + tabindex_str + '/>';
break;
case 'checkbox':
input = '<input id="'+ field.field +'" name="'+ field.field +'" class="w2ui-input" type="checkbox" '+ field.html.attr + tabindex_str + '/>';
input = '<label>'+
' <input id="'+ field.field +'" name="'+ field.field +'" style="float: left" class="w2ui-input" type="checkbox" '+ field.html.attr + tabindex_str + '/>'+
' <div style="margin: 6px 0 0 20px; user-select: none;">'+ field.html.label +'</div>'+
'</label>';
break;
case 'radio':
input = '';
Expand All @@ -19756,8 +19759,10 @@ var w2prompt = function (label, title, callBack) {
}
// generate
for (var i = 0; i < items.length; i++) {
input += '<label><input id="' + field.field + '" name="' + field.field + '" class="w2ui-input" type = "radio" ' + field.html.attr + (i === 0 ? tabindex_str : '') + ' value="'+ items[i].id + '"/>' +
'&#160;' + items[i].text + '</label><br/>';
input += '<label style="user-select: none">'+
' <input id="' + field.field + '" name="' + field.field + '" class="w2ui-input" type = "radio" ' + field.html.attr + (i === 0 ? tabindex_str : '') + ' value="'+ items[i].id + '"/>' +
'&#160;' + items[i].text +
'</label><br/>';
}
break;
case 'select':
Expand Down Expand Up @@ -19809,13 +19814,13 @@ var w2prompt = function (label, title, callBack) {
var span = (field.html.span != null ? 'w2ui-span'+ field.html.span : '')
if (field.html.span == -1) span = 'w2ui-span-none';
html += '\n <div class="w2ui-field '+ span +'" style="'+ (field.hidden ? 'display: none;' : '') + field.html.style +'">'+
'\n <label'+ (span == 'none' ? ' style="display: none"' : '') +'>' + w2utils.lang(field.html.label) +'</label>'+
((field.type === 'empty') ? '' : '\n <div>'+ input + (field.type != 'array' && field.type != 'map' ? w2utils.lang(field.html.text) : '') + '</div>') +
'\n <label'+ (span == 'none' ? ' style="display: none"' : '') +'>' + w2utils.lang(field.type != 'checkbox' ? field.html.label : field.html.text) +'</label>'+
((field.type === 'empty') ? '' : '\n <div>'+ input + (field.type != 'array' && field.type != 'map' ? w2utils.lang(field.type != 'checkbox' ? field.html.text : '') : '') + '</div>') +
'\n </div>';
} else {
pages[field.html.page].anchors = pages[field.html.page].anchors || {};
pages[field.html.page].anchors[field.html.anchor] = '<div class="w2ui-field w2ui-field-inline" style="'+ (field.hidden ? 'display: none;' : '') + field.html.style +'">'+
((field.type === 'empty') ? '' : '<div>'+ w2utils.lang(field.html.label) + input + w2utils.lang(field.html.text) + '</div>') +
((field.type === 'empty') ? '' : '<div>'+ w2utils.lang(field.type != 'checkbox' ? field.html.label : field.html.text) + input + w2utils.lang(field.type != 'checkbox' ? field.html.text : '') + '</div>') +
'</div>';
}
if (pages[field.html.page] == null) pages[field.html.page] = {};
Expand Down
2 changes: 1 addition & 1 deletion dist/w2ui.min.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/w2ui.min.js

Large diffs are not rendered by default.

0 comments on commit 8191873

Please sign in to comment.