changeset 582:a241362cda68

Use indexOf instead of contains to check if a substring exists.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 11 Mar 2015 10:13:43 +0100
parents 424802824648
children 54545b3ae294
files app/view/window/ProbeEdit.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/window/ProbeEdit.js	Tue Mar 10 17:12:53 2015 +0100
+++ b/app/view/window/ProbeEdit.js	Wed Mar 11 10:13:43 2015 +0100
@@ -133,7 +133,7 @@
         var keyText;
         var i18n = Lada.getApplication().bundle;
         for (key in errors) {
-            if (key && key.contains('Ort')) {
+            if (key && key.indexOf('Ort') > -1) {
                 errorOrt = true;
                 content = errors[key];
                 keyText = i18n.getMsg(key);
@@ -144,7 +144,7 @@
             }
         }
         for (key in warnings) {
-            if (key && key.contains('Ort')) {
+            if (key && key.indexOf('Ort') > -1) {
                 warningOrt = true;
                 content = warnings[key];
                 keyText = i18n.getMsg(key);

http://lada.wald.intevation.org