diff app/view/window/ProbeEdit.js @ 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 ea2c35cd9c19
children e24bc8cf8e1d
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