[Lada-commits] [PATCH 2 of 2] disable remove button after a item is deleted from grid

Wald Commits scm-commit at wald.intevation.org
Fri May 29 15:28:10 CEST 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1432906012 -7200
# Node ID 2362f8ab1e9fa8e7de3ed547bc95178d3f3811c4
# Parent  426829f27b02b6ebfebb6ed093db6185e2f7fad6
disable remove button after a item is deleted from grid

diff -r 426829f27b02 -r 2362f8ab1e9f app/controller/grid/MKommentar.js
--- a/app/controller/grid/MKommentar.js	Fri May 29 15:26:24 2015 +0200
+++ b/app/controller/grid/MKommentar.js	Fri May 29 15:26:52 2015 +0200
@@ -116,5 +116,6 @@
                 });
             }
         });
+        grid.down('button[action=delete]').disable();
     }
 });
diff -r 426829f27b02 -r 2362f8ab1e9f app/controller/grid/Messung.js
--- a/app/controller/grid/Messung.js	Fri May 29 15:26:24 2015 +0200
+++ b/app/controller/grid/Messung.js	Fri May 29 15:26:52 2015 +0200
@@ -102,5 +102,6 @@
                 }
             }
         );
+        grid.down('button[action=delete]').disable();
     }
 });
diff -r 426829f27b02 -r 2362f8ab1e9f app/controller/grid/Messwert.js
--- a/app/controller/grid/Messwert.js	Fri May 29 15:26:24 2015 +0200
+++ b/app/controller/grid/Messwert.js	Fri May 29 15:26:52 2015 +0200
@@ -129,5 +129,6 @@
                 });
             }
         });
+        grid.down('button[action=delete]').disable();
     }
 });
diff -r 426829f27b02 -r 2362f8ab1e9f app/controller/grid/Ort.js
--- a/app/controller/grid/Ort.js	Fri May 29 15:26:24 2015 +0200
+++ b/app/controller/grid/Ort.js	Fri May 29 15:26:52 2015 +0200
@@ -98,5 +98,6 @@
                 });
             }
         });
+        grid.down('button[action=delete]').disable();
     }
 });
diff -r 426829f27b02 -r 2362f8ab1e9f app/controller/grid/PKommentar.js
--- a/app/controller/grid/PKommentar.js	Fri May 29 15:26:24 2015 +0200
+++ b/app/controller/grid/PKommentar.js	Fri May 29 15:26:52 2015 +0200
@@ -117,5 +117,6 @@
                 });
             }
         });
+        grid.down('button[action=delete]').disable();
     }
 });
diff -r 426829f27b02 -r 2362f8ab1e9f app/controller/grid/Probenzusatzwert.js
--- a/app/controller/grid/Probenzusatzwert.js	Fri May 29 15:26:24 2015 +0200
+++ b/app/controller/grid/Probenzusatzwert.js	Fri May 29 15:26:52 2015 +0200
@@ -118,5 +118,6 @@
                 });
             }
         });
+        grid.down('button[action=delete]').disable();
     }
 });
diff -r 426829f27b02 -r 2362f8ab1e9f app/controller/grid/Status.js
--- a/app/controller/grid/Status.js	Fri May 29 15:26:24 2015 +0200
+++ b/app/controller/grid/Status.js	Fri May 29 15:26:52 2015 +0200
@@ -119,5 +119,6 @@
                 });
             }
         });
+        grid.down('button[action=delete]').disable();
     }
 });


More information about the Lada-commits mailing list