Commits

Panayiotis Lipiridis committed 4e17cdc

Fixed the separator issue in the service_call

Comments (0)

Files changed (1)

main/static/src/script/common/service.coffee

   params = params || {}
   for k, v of params
     delete params[k] if not v?
+  separator = if url.search('\\?') >= 0 then '&' else '?'
   $.ajax
     type: method
-    url: "#{url}?#{$.param params}"
+    url: "#{url}#{separator}#{$.param params}"
     contentType: 'application/json'
     accepts: 'application/json'
     dataType: 'json'