mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-02-11 01:00:38 +03:00
0.5.10
This commit is contained in:
parent
cd0ee750b6
commit
6625d42cc2
|
@ -569,9 +569,4 @@ module.exports = function (grunt) {
|
||||||
"connect:livereload",
|
"connect:livereload",
|
||||||
"watch"
|
"watch"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Meteor tasks
|
|
||||||
grunt.registerTask("meteor-test", ["exec:meteor-init", "exec:meteor-test", "exec:meteor-cleanup"]);
|
|
||||||
grunt.registerTask("meteor-publish", ["exec:meteor-init", "exec:meteor-publish", "exec:meteor-cleanup"]);
|
|
||||||
grunt.registerTask("meteor", ["exec:meteor-init", "exec:meteor-test", "exec:meteor-publish", "exec:meteor-cleanup"]);
|
|
||||||
};
|
};
|
||||||
|
|
23
dist/js/material.js
vendored
23
dist/js/material.js
vendored
|
@ -37,13 +37,32 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _toggleDisabledState($element, state) {
|
||||||
|
var $target;
|
||||||
|
if ($element.hasClass('checkbox-inline') || $element.hasClass('radio-inline')) {
|
||||||
|
$target = $element;
|
||||||
|
} else {
|
||||||
|
$target = $element.closest('.checkbox').length ? $element.closest('.checkbox') : $element.closest('.radio');
|
||||||
|
}
|
||||||
|
return $target.toggleClass('disabled', state);
|
||||||
|
}
|
||||||
|
|
||||||
function _toggleTypeFocus($input) {
|
function _toggleTypeFocus($input) {
|
||||||
|
var disabledToggleType = false;
|
||||||
|
if ($input.is($.material.options.checkboxElements) || $input.is($.material.options.radioElements)) {
|
||||||
|
disabledToggleType = true;
|
||||||
|
}
|
||||||
$input.closest('label').hover(function () {
|
$input.closest('label').hover(function () {
|
||||||
var $i = $(this).find('input');
|
var $i = $(this).find('input');
|
||||||
if (!$i.prop('disabled')) { // hack because the _addFormGroupFocus() wasn't identifying the property on chrome
|
var isDisabled = $i.prop('disabled'); // hack because the _addFormGroupFocus() wasn't identifying the property on chrome
|
||||||
|
if (disabledToggleType) {
|
||||||
|
_toggleDisabledState($(this), isDisabled);
|
||||||
|
}
|
||||||
|
if (!isDisabled) {
|
||||||
_addFormGroupFocus($i); // need to find the input so we can check disablement
|
_addFormGroupFocus($i); // need to find the input so we can check disablement
|
||||||
}
|
}
|
||||||
}, function () {
|
},
|
||||||
|
function () {
|
||||||
_removeFormGroupFocus($(this).find('input'));
|
_removeFormGroupFocus($(this).find('input'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
2
dist/js/material.min.js
vendored
2
dist/js/material.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/material.min.js.map
vendored
2
dist/js/material.min.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bootstrap-material-design",
|
"name": "bootstrap-material-design",
|
||||||
"version": "0.5.9",
|
"version": "0.5.10",
|
||||||
"description": "Material Design for Bootstrap 3",
|
"description": "Material Design for Bootstrap 3",
|
||||||
"main": "scripts/index.js",
|
"main": "scripts/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user