Browse Source

improvements adaptive

elclanrs 10 years ago
parent
commit
4c667e8487

+ 2 - 2
index.php

@@ -129,13 +129,13 @@
 
             <div class="field">
               <label class="main">Phone:</label>
-              <input name="phone" type="text">
+              <input name="phone" type="text" placeholder="000-000-0000">
               <span class="error"></span>
             </div>
 
             <div class="field">
               <label class="main">Zip:</label>
-              <input name="zip" type="text">
+              <input name="zip" type="text" placeholder="00000">
               <span class="error"></span>
             </div>
 

+ 2 - 4
js/extensions/adaptive/adaptive.ext.js

@@ -27,15 +27,13 @@ module.exports = {
           self.$stepsContainer.toggleClass('adaptive', isAdaptive);
         }
 
-        if (self._hasExtension('datepicker')) {
-          $('#ui-datepicker-div').hide();
-        }
+        $('#ui-datepicker-div').hide();
       }
 
       $(window).resize(adapt);
       adapt();
 
-      this.$form.find('select').each(function() {
+      this.$form.find('select, .datepicker').each(function() {
         self._getField(this).find(self.opts.error).addClass('hidden');
       });
 

+ 0 - 2
js/extensions/datepicker/datepicker.ext.js

@@ -13,8 +13,6 @@ module.exports = {
 
       var $datepicker = this.$form.find('input.datepicker');
 
-      this._getField($datepicker).find(this.opts.error).addClass('hidden');
-
       // Always show datepicker below the input
       if (jQuery.ui) {
         $.datepicker._checkOffset = function(a,b,c){ return b };

File diff suppressed because it is too large
+ 2 - 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