elclanrs 10 years ago
parent
commit
be9f66a800

+ 1 - 1
index.php

@@ -195,7 +195,7 @@
 
   </div>
 
-  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
+  <script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
   <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
   <script src="js/out/jquery.idealforms.js"></script>
   <!--<script src="js/out/jquery.idealforms.min.js"></script>-->

+ 5 - 5
js/extensions/adaptive/adaptive.ext.js

@@ -5,10 +5,6 @@ module.exports = {
 
   name: 'adaptive',
 
-  options: {
-    adaptiveWidth: $('<p class="idealforms-field-width"/>').appendTo('body').css('width').replace('px','')
-  },
-
   methods: {
 
     // @extend
@@ -16,6 +12,10 @@ module.exports = {
 
       var self = this;
 
+      var $dummy = $('<p class="idealforms-field-width"/>').appendTo('body');
+
+      this.opts.adaptiveWidth = $dummy.css('width').replace('px','')
+
       function adapt() {
 
         var formWidth = self.$form.outerWidth()
@@ -37,7 +37,7 @@ module.exports = {
         self._getField(this).find(self.opts.error).addClass('hidden');
       });
 
-      $('p.idealforms-field-width').remove();
+      $dummy.remove();
     }
 
   }

File diff suppressed because it is too large
+ 6 - 6
js/out/jquery.idealforms.js


File diff suppressed because it is too large
+ 0 - 0
js/out/jquery.idealforms.min.js


Some files were not shown because too many files changed in this diff