diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index 6d5ef7c..9bb0b23 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -8,7 +8,10 @@
"Bash(then rm logs.txt)",
"Bash(else echo \"Plik logs.txt nie istnieje\")",
"Bash(fi)",
- "Bash(grep:*)"
+ "Bash(grep:*)",
+ "WebFetch(domain:storefront.developers.shoper.pl)",
+ "WebFetch(domain:developers.shoper.pl)",
+ "WebFetch(domain:pomoc.home.pl)"
]
}
}
diff --git a/templates/tasks/task_popup.php b/templates/tasks/task_popup.php
index b57f989..7ca2b51 100644
--- a/templates/tasks/task_popup.php
+++ b/templates/tasks/task_popup.php
@@ -119,7 +119,7 @@
if ( is_array( $this -> all_users ) ): foreach ( $this -> all_users as $u ):?>
endforeach; endif;?>
@@ -421,6 +421,14 @@
} );
}
+ if ( $.fn.iCheck )
+ {
+ popup.find( '.task-user-checkbox' ).iCheck({
+ checkboxClass: 'icheckbox_square-blue',
+ radioClass: 'iradio_square-blue'
+ });
+ }
+
var time_worked = popup.find( '.time_worked' );
var time_value = popup.find( '.js-time-worked-value' );
var total_seconds = parseInt( time_worked.attr( 'data-total-seconds' ), 10 ) || 0;
@@ -483,7 +491,7 @@
if ( res.status === 'success' ) {
var names = [];
popup.find( '.task-user-checkbox:checked' ).each( function() {
- names.push( $( this ).parent().text().trim() );
+ names.push( $( this ).closest( '.task-user-label' ).text().trim() );
});
var html = '';
for ( var i = 0; i < names.length; i++ ) {
@@ -491,6 +499,11 @@
html += '
' + initials + '
' + names[i] + '
';
}
popup.find( '.users.box' ).html( html );
+ if ( typeof getSelectedTaskFilters === 'function' && typeof reload_tasks === 'function' )
+ {
+ var selected_filters = getSelectedTaskFilters();
+ reload_tasks( selected_filters.projects, selected_filters.users );
+ }
btn.text( 'Zapisano!' );
} else {
btn.text( 'Błąd' );