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()
13
13
}
14
14
}
15
15
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
+
16
26
var use_storage = supports_html5_storage ( ) ;
17
27
18
28
var aButtons = [ ] ;
@@ -210,8 +220,6 @@ function delete_row(delete_url , row_id)
210
220
{
211
221
if ( data . success )
212
222
{
213
- success_message ( data . success_message ) ;
214
-
215
223
chosen_table = datatables_get_chosen_table ( $ ( 'tr#row-' + row_id ) . closest ( '.groceryCrudTable' ) ) ;
216
224
217
225
$ ( '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
+
1
11
$ ( function ( ) {
2
12
$ ( '.quickSearchButton' ) . click ( function ( ) {
3
13
$ ( this ) . closest ( '.flexigrid' ) . find ( '.quickSearchBox' ) . slideToggle ( 'normal' ) ;
@@ -170,8 +180,6 @@ $(function(){
170
180
if ( data . success )
171
181
{
172
182
this_container . find ( '.ajax_refresh_and_loading' ) . trigger ( 'click' ) ;
173
-
174
- success_message ( data . success_message ) ;
175
183
}
176
184
else
177
185
{
Original file line number Diff line number Diff line change 3
3
- #470: Update Polish translation by @tikky
4
4
- #468: Remove PHP 7.3 warnings
5
5
- #38: Bug fix: required_fields doesn't work for relation_n_n fields
6
+ - #469: datatables theme - update table fails after delete
6
7
v 1.6.2
7
8
- #442: Searching in grid with value 0 is not working
8
9
- #458: Updated Lithuanian language by @dgvirtual
You can’t perform that action at this time.
0 commit comments