Skip to content

Commit

Permalink
Release v1.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
arturmamedov committed Feb 21, 2020
1 parent 781abc2 commit 872225e
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 13 deletions.
5 changes: 5 additions & 0 deletions dist/css/w-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
display: none !important;
}

/* A little style for class placeholder applied on option (suggest to use in combination with: selected disabled trick) */
select option.placeholder, select option:disabled, select option[disabled], select option[disabled="disabled"] {
color: #999999;
}

/* modal wide */
.modal-wide {
width: 90% !important;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/w-style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/w-style.min.css.map

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions dist/js/w-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -1283,8 +1283,8 @@ function setIntoCookie(_this) {
value = _this.data('value');
}

// not action if no value
if (value == '') {
// stop if no name or value
if ((typeof name == 'undefined' || name == '' || name == null) || (typeof value == 'undefined' || value == '' || value == null)) {
return;
}

Expand All @@ -1309,11 +1309,12 @@ $('.w-cookie-form').on('change blur click', 'input, select, textarea', function(
});
// set the .w-cookie-form values after load of document
$('.w-cookie-form input, .w-cookie-form select, .w-cookie-form textarea').each( function(){
// if (! $(this).hasClass('w-no-cookie')) { // if not set at change, it not will be set now
if (! $(this).hasClass('w-no-cookie')) { // there can be another form that want not set from cookie
setFromCookie($(this));
// }
}
});


/**
* Bind a form input to another input or something else
* add `.w-setter` for bind on.load
Expand Down
2 changes: 1 addition & 1 deletion dist/js/w-plugins.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/w-plugins.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "withfront",
"version": "1.5.6",
"version": "1.5.7",
"description": "Tools for frontend development especially with Bootstrap 3.x and jQuery 3.x also FontAwesome, jsCookie and more",
"author": "Artur Mamedov <[email protected]>",
"license": "MIT",
Expand Down
9 changes: 5 additions & 4 deletions withplugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -1283,8 +1283,8 @@ function setIntoCookie(_this) {
value = _this.data('value');
}

// not action if no value
if (value == '') {
// stop if no name or value
if ((typeof name == 'undefined' || name == '' || name == null) || (typeof value == 'undefined' || value == '' || value == null)) {
return;
}

Expand All @@ -1309,11 +1309,12 @@ $('.w-cookie-form').on('change blur click', 'input, select, textarea', function(
});
// set the .w-cookie-form values after load of document
$('.w-cookie-form input, .w-cookie-form select, .w-cookie-form textarea').each( function(){
// if (! $(this).hasClass('w-no-cookie')) { // if not set at change, it not will be set now
if (! $(this).hasClass('w-no-cookie')) { // there can be another form that want not set from cookie
setFromCookie($(this));
// }
}
});


/**
* Bind a form input to another input or something else
* add `.w-setter` for bind on.load
Expand Down

0 comments on commit 872225e

Please sign in to comment.