GitHub PullRequestReviewCommentEvent at 2014-04-30 07:25:39
Repository: onosm.org
Actor: sabas
Payload: {"comment":{"url":"https://api.github.com/repos/osmlab/onosm.org/pulls/comments/12131336","id":12131336,"diff_hunk":"@@ -26,20 +37,76 @@ $(\"#category\").select2({\n     }\n });\n \n+$(\"#payment\").select2({\n+    multiple:true,\n+    query:function(query) {\n+        var data={results:[]}, \n+            results=data.results, \n+            t=query.term;\n+        if (t!==\"\"&&payment_data.indexOf(t)<0) {\n+            results.push({id:t, text:t});\n+        }\n+        \n+        $(payment_data)\n+         .filter(function() { return t===\"\"||this.indexOf(t)>=0; })\n+         .each(function() { results.push({id:this, text:this}); });\n+\n+        query.callback(data);\n+    }\n+});\n+\n+$(\"#wheel\").select2({placeholder:\"Seleziona una opzione\"});\n+\n+/* search action */\n $(\"#find\").submit(function(e) {\n     e.preventDefault();\n     $(\"#couldnt-find\").hide();\n     var address_to_find = $(\"#address\").val();\n     if (address_to_find.length === 0) return;\n-    var qwarg = {\n+    \n+    /* NOMINATIM PARAM */\n+    var qwarg_nominatim = {\n         format: 'json',\n         q: address_to_find\n     };\n-    var url = \"http://nominatim.openstreetmap.org/search?\" + $.param(qwarg);\n-    $(\"#findme h4\").text(\"Searching...\");\n+    var url_nominatim = \"http://nominatim.openstreetmap.org/search?\" + $.param(qwarg_nominatim);\n+    \n+    /* SOLR TEST SERVER */\n+    var qwarg_solr = {\n+        wt: 'json',\n+        indent: 'true',\n+        qt: 'italian',\n+        q: address_to_find\n+    };\n+    var url_solr = \"http://95.240.35.64:8080/solr-example/collection1/select?\" + $.param(qwarg_solr);","path":"js/site.js","position":83,"original_position":83,"commit_id":"5028e98fc57994b2c3e6aea0d98878680ae96ce3","original_commit_id":"5028e98fc57994b2c3e6aea0d98878680ae96ce3","user":{"login":"sabas","id":1304918,"avatar_url":"https://avatars.githubusercontent.com/u/1304918?","gravatar_id":"ef4fed23771745a437c021e704bd0ad3","url":"https://api.github.com/users/sabas","html_url":"https://github.com/sabas","followers_url":"https://api.github.com/users/sabas/followers","following_url":"https://api.github.com/users/sabas/following{/other_user}","gists_url":"https://api.github.com/users/sabas/gists{/gist_id}","starred_url":"https://api.github.com/users/sabas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabas/subscriptions","organizations_url":"https://api.github.com/users/sabas/orgs","repos_url":"https://api.github.com/users/sabas/repos","events_url":"https://api.github.com/users/sabas/events{/privacy}","received_events_url":"https://api.github.com/users/sabas/received_events","type":"User","site_admin":false},"body":"This actually was added to test a demo server, but I didn't made the switch because it's still a demo :-)","created_at":"2014-04-30T07:25:39Z","updated_at":"2014-04-30T07:25:39Z","html_url":"https://github.com/osmlab/onosm.org/pull/2#discussion_r12131336","pull_request_url":"https://api.github.com/repos/osmlab/onosm.org/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/osmlab/onosm.org/pulls/comments/12131336"},"html":{"href":"https://github.com/osmlab/onosm.org/pull/2#discussion_r12131336"},"pull_request":{"href":"https://api.github.com/repos/osmlab/onosm.org/pulls/2"}}}}