UI update

This commit is contained in:
Serghey Rodin 2015-06-03 02:31:03 +03:00
commit 527e4a9a62
139 changed files with 2046 additions and 124 deletions

View file

@ -34,18 +34,18 @@
if (location.href.search(/list/) != -1) {
var shift_select_ref = $('body').finderSelect({children: '.l-unit',
'onFinish': function(evt) {
var ref = $(evt.target);
/*var ref = $(evt.target);
$('.l-content').find('.l-unit .ch-toggle').attr('checked', false);
$('.l-content').find('.l-unit.selected .ch-toggle').attr('checked', true);
if ($('.l-content').find('.l-unit.selected').length == $('.l-content').find('.l-unit').length) {
$('.toggle-all').addClass('clicked-on');
}
}*/
},
'toggleAllHook': function() {
if ($('.l-unit').length == $('.ch-toggle:checked').length) {
/*if ($('.l-unit').length == $('.ch-toggle:checked').length) {
$('.l-unit.selected').removeClass('selected');
$('.ch-toggle').attr('checked', false);
$('#toggle-all').attr('checked', false);
@ -53,7 +53,7 @@
else {
$('.ch-toggle').attr('checked', true);
$('#toggle-all').attr('checked', true);
}
}*/
}
});
$('table').on('mousedown', 'td', function(e) {