Sha256: b871f53c4f08a4feb0673baa04f2629b22c830713b4e4899e77b0aae72a64db2

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 KB

Contents

// Forms Demo
// ----------------------------------- 


(function(window, document, $, undefined){

  $(function(){

    // BOOTSTRAP SLIDER CTRL
    // ----------------------------------- 

    if($.fn.slider)
      $('[data-ui-slider]').slider();

    // CHOSEN
    // ----------------------------------- 

    if($.fn.chosen)
      $('.chosen-select').chosen();

    // MASKED
    // ----------------------------------- 

    if($.fn.inputmask)
      $('[data-masked]').inputmask();

    // FILESTYLE
    // ----------------------------------- 

    if($.fn.filestyle)
      $('.filestyle').filestyle();

    // WYSIWYG
    // ----------------------------------- 

    if($.fn.wysiwyg)
      $('.wysiwyg').wysiwyg();


    // DATETIMEPICKER
    // ----------------------------------- 

    if($.fn.datetimepicker) {

      $('#datetimepicker1').datetimepicker({
        icons: {
            time: 'fa fa-clock-o',
            date: 'fa fa-calendar',
            up: 'fa fa-chevron-up',
            down: 'fa fa-chevron-down',
            previous: 'fa fa-chevron-left',
            next: 'fa fa-chevron-right',
            today: 'fa fa-crosshairs',
            clear: 'fa fa-trash'
          }
      });
      // only time
      $('#datetimepicker2').datetimepicker({
          format: 'LT'
      });
      // View mode
      $('#datetimepicker3').datetimepicker({
          viewMode: 'years',
         format: 'MM/YYYY'
      });

    }

  });

})(window, document, window.jQuery);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radius-rails-3.1.4 app/assets/javascripts/radius-theme/modules/demo/demo-forms.js