mdelrosso / sheepit

SheepIt! Form Cloning plugin for Jquery
http://www.mdelrosso.com/sheepit/
MIT License
68 stars 44 forks source link

fix for using jquery 1.9.1 #41

Open dwfee opened 8 years ago

dwfee commented 8 years ago

replace function getOrSetTemplate(element, attrname), line 141 with this: function getOrSetTemplate(element, attrname){ var template=element.prop(attrname+"template");

      if(template) {
        return unescape(template);
      }
      var att=element.prop(attrname);

      // Hide index occurrences inside the template (todo: better escaping method)      
      element.prop(attrname+"template", escape(att));
      return att;
    }
fakership1 commented 8 years ago

it cannot work

dwfee commented 8 years ago

download this version tested with jquery 1.12.4 also fixed some other issues, fieldtypes, inject,ion etc.

sheepit.js.txt