File tree Expand file tree Collapse file tree 3 files changed +21
-4
lines changed
assets/grocery_crud/themes Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,16 @@ function supports_html5_storage()
1313 }
1414}
1515
16+ function success_message ( message ) {
17+ $ ( '#list-report-success' ) . html ( message ) ;
18+ $ ( '#list-report-success' ) . slideDown ( ) ;
19+ }
20+
21+ function error_message ( message ) {
22+ $ ( '#list-report-error' ) . html ( message ) ;
23+ $ ( '#list-report-error' ) . slideDown ( ) ;
24+ }
25+
1626var use_storage = supports_html5_storage ( ) ;
1727
1828var aButtons = [ ] ;
@@ -210,8 +220,6 @@ function delete_row(delete_url , row_id)
210220 {
211221 if ( data . success )
212222 {
213- success_message ( data . success_message ) ;
214-
215223 chosen_table = datatables_get_chosen_table ( $ ( 'tr#row-' + row_id ) . closest ( '.groceryCrudTable' ) ) ;
216224
217225 $ ( 'tr#row-' + row_id ) . addClass ( 'row_selected' ) ;
Original file line number Diff line number Diff line change 1+ function success_message ( message ) {
2+ $ ( '#list-report-success' ) . html ( message ) ;
3+ $ ( '#list-report-success' ) . slideDown ( ) ;
4+ }
5+
6+ function error_message ( message ) {
7+ $ ( '#list-report-error' ) . html ( message ) ;
8+ $ ( '#list-report-error' ) . slideDown ( ) ;
9+ }
10+
111$ ( function ( ) {
212 $ ( '.quickSearchButton' ) . click ( function ( ) {
313 $ ( this ) . closest ( '.flexigrid' ) . find ( '.quickSearchBox' ) . slideToggle ( 'normal' ) ;
@@ -170,8 +180,6 @@ $(function(){
170180 if ( data . success )
171181 {
172182 this_container . find ( '.ajax_refresh_and_loading' ) . trigger ( 'click' ) ;
173-
174- success_message ( data . success_message ) ;
175183 }
176184 else
177185 {
Original file line number Diff line number Diff line change 33 - #470: Update Polish translation by @tikky
44 - #468: Remove PHP 7.3 warnings
55 - #38: Bug fix: required_fields doesn't work for relation_n_n fields
6+ - #469: datatables theme - update table fails after delete
67v 1.6.2
78 - #442: Searching in grid with value 0 is not working
89 - #458: Updated Lithuanian language by @dgvirtual
You can’t perform that action at this time.
0 commit comments