changeset 826:2362f8ab1e9f

disable remove button after a item is deleted from grid
author Dustin Demuth <dustin@intevation.de>
date Fri, 29 May 2015 15:26:52 +0200
parents 426829f27b02
children 42f7475f3b7d
files app/controller/grid/MKommentar.js app/controller/grid/Messung.js app/controller/grid/Messwert.js app/controller/grid/Ort.js app/controller/grid/PKommentar.js app/controller/grid/Probenzusatzwert.js app/controller/grid/Status.js
diffstat 7 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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();
     }
 });
--- 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();
     }
 });
--- 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();
     }
 });
--- 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();
     }
 });
--- 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();
     }
 });
--- 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();
     }
 });
--- 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();
     }
 });

http://lada.wald.intevation.org