boutils před 10 roky
rodič
revize
e676a13010
3 změnil soubory, kde provedl 6 přidání a 12 odebrání
  1. 5 2
      ajax/oracle.php
  2. 0 7
      index.html
  3. 1 3
      js/app.js

+ 5 - 2
ajax/oracle.php

@@ -1,4 +1,6 @@
 <?php
+  ini_set('display_errors', 1);
+  ini_set('display_startup_errors', 1);
   error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
 
   $db = "(DESCRIPTION =
@@ -20,7 +22,7 @@
 
     if (!$stid) {
       $e = oci_error($conn);
-      $error['error'] = $e;
+      $error['error'] = 'Hum!!! Ssomething went wrong! '.$e;
       return $error;
     }
 
@@ -28,13 +30,14 @@
 
     if (!$r) {
       $e = oci_error($stid);
-      $error['error'] = $e;
+      $error['error'] = 'Hum!!! Ssomething went wrong! '.$e;
       return $error;
     }
 
     while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS+OCI_ASSOC)) {
         $res[] = $row;
     }
+
     return $res;
   }
 

+ 0 - 7
index.html

@@ -393,13 +393,6 @@
               <div
                 ng-if = "results.adsl !== undefined">
 
-                <div
-                  class = "box-eligibilite-none"
-                  ng-if = "!results.adsl">
-
-                  Non éligible
-                </div>
-
                 <div
                   class = "popup-line"
                   ng-if = "!results.adsl._advanced && results.adsl.LEGENDE">

+ 1 - 3
js/app.js

@@ -627,7 +627,7 @@ app.controller('mainController', function($scope, $detection, $http, $mdSidenav,
 
       var i = 0, j = 0;
       $scope.suggestLocation = function(val) {
-        console.log('__suggestLocation', val);
+        //console.log('__suggestLocation', val);
         $scope.suggestionsReady = false;
         i++;
         return $http.get(suggestURL, {
@@ -1012,8 +1012,6 @@ app.controller('mainController', function($scope, $detection, $http, $mdSidenav,
 
     if(!item) {
       item           = $scope.suggestions[0];
-      console.log('3 $scope.address', $scope.address);
-      console.log('3 address', item.text);
       $scope.address = item.text;
     }
     $scope.magicKey = item.magicKey;