mirror of
https://github.com/myvesta/vesta
synced 2025-07-10 23:33:13 -07:00
Yahooo, sync with devel server :)
This commit is contained in:
parent
d25ae72355
commit
af3ee14057
94 changed files with 2975 additions and 302 deletions
|
@ -15,7 +15,26 @@ App.Core.listen = function()
|
|||
if (action.length < 2) {
|
||||
if (elm.hasClass('check-this')) {
|
||||
var ref = $(elm).parents('.row');
|
||||
ref.hasClass('checked-row') ? ref.removeClass('checked-row') : ref.addClass('checked-row');
|
||||
if (ref.hasClass('checked-row')) {
|
||||
ref.removeClass('checked-row');
|
||||
App.Tmp[App.Env.world + '_selected_records'] -= 1;
|
||||
}
|
||||
else {
|
||||
ref.addClass('checked-row');
|
||||
App.Tmp[App.Env.world + '_selected_records'] += 1;
|
||||
}
|
||||
|
||||
if (App.Tmp[App.Env.world + '_selected_records'] <= 0) {
|
||||
App.Tmp[App.Env.world + '_selected_records'] = 0; // if number is negative
|
||||
$('#batch-processor .selector-title').html('NONE');
|
||||
$('.styled.do_action_toggle_batch_selector.style-applied').attr('checked', false);
|
||||
$('.checkbox.do_action_toggle_batch_selector').css('background-position', '0 0');
|
||||
}
|
||||
else {
|
||||
$('#batch-processor .selector-title').html(App.Tmp[App.Env.world + '_selected_records'] + ' SELECTED');
|
||||
$('.styled.do_action_toggle_batch_selector.style-applied').attr('checked', true);
|
||||
$('.checkbox.do_action_toggle_batch_selector').css('background-position', '0 -50px');
|
||||
}
|
||||
}
|
||||
return; // no action found attached to the dom object
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue