Skip to content

Commit

Permalink
Updated default Google Forms submission URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushnarula committed Jul 23, 2016
1 parent f70a0c8 commit 7263516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/jquery.jqgoogleforms.js
Expand Up @@ -24,7 +24,7 @@
function jqGoogleForms( element, customOptions ) {
options = $.extend( {}, defaults, customOptions) ;
if (options.formKey){
options["url"] = "https://docs.google.com/forms/d/" + options.formKey + "/viewform?embedded=true"
options["url"] = "https://docs.google.com/forms/d/e/" + options.formKey + "/viewform?embedded=true"
}
}

Expand All @@ -46,7 +46,7 @@
$.fn[pluginName]().sendFormData = function(data){ //appends to main function, reduce namespace footprint
if (options.formKey) {
$.ajax({
url: "https://docs.google.com/forms/d/" + options.formKey + "/formResponse",
url: "https://docs.google.com/forms/d/e/" + options.formKey + "/formResponse",
data: data,
type: "POST",
dataType: "xml"
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.jqgoogleforms.min.js
Expand Up @@ -15,4 +15,4 @@
* Licensed under the MIT license
*/

;(function(e,t,n,r){function u(t,n){o=e.extend({},s,n);if(o.formKey){o["url"]="https://docs.google.com/forms/d/"+o.formKey+"/viewform?embedded=true"}}var i="jqGoogleForms",s={},o={};e.fn[i]=function(t){return this.each(function(n){if(!e.data(this,"plugin_"+i)){e.data(this,"plugin_"+i,new u(this,t))}})};e.fn[i]().sendFormData=function(t){if(o.formKey){e.ajax({url:"https://docs.google.com/forms/d/"+o.formKey+"/formResponse",data:t,type:"POST",dataType:"xml"})}else{console.log("jqGoogleForms: No form key!")}}})(jQuery,window,document)
;(function(e,t,n,r){function u(t,n){o=e.extend({},s,n);if(o.formKey){o["url"]="https://docs.google.com/forms/d/e/"+o.formKey+"/viewform?embedded=true"}}var i="jqGoogleForms",s={},o={};e.fn[i]=function(t){return this.each(function(n){if(!e.data(this,"plugin_"+i)){e.data(this,"plugin_"+i,new u(this,t))}})};e.fn[i]().sendFormData=function(t){if(o.formKey){e.ajax({url:"https://docs.google.com/forms/d/e/"+o.formKey+"/formResponse",data:t,type:"POST",dataType:"xml"})}else{console.log("jqGoogleForms: No form key!")}}})(jQuery,window,document)

0 comments on commit 7263516

Please sign in to comment.