cleanup CRM search
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 14 Mar 2011 20:32:14 +0000 (20:32 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 14 Mar 2011 20:32:14 +0000 (20:32 +0000)
public/CRM.html

index e37eb27..812e273 100644 (file)
@@ -16,6 +16,7 @@
       };
    
       this.clear = function() {
+        self.url = null;
         self.code = null;
         self.response = null;
       };
     PingCntl.$inject = ['$xhr'];
   </script>
   <div ng:controller="PingCntl">
-    <input type="text" name="function" value="CRM_username"      size="20"/>
+    <input type="text" name="function" value="CRM_search"      size="20"/>
     <input type="text" name="args"     value="test" size="10"/>
     <button ng:click="fetch()">fetch</button>
     <button ng:click="clear()">clear</button>
     <b ng:show="url && ! code">loading {{url}}</b>
+    <b ng:show="response">{{response.length}} results</b>
     <table ng:show="response">
     <tr>
        <th>USERNAME</th>
@@ -48,7 +50,8 @@
        <td>{{u.OPT82}}</td>
     </tr>
     </table>
-    <pre>
+    <input type=checkbox name=debug value=1>
+    <pre ng:show=debug>
 url={{url}}
 code={{code}}
 response={{response}}