Sha256: 065e7fd20bcd31444743228a9adfa9ac851fbe5d16b6fea5b034949ab2ddb787
Contents?: true
Size: 1.24 KB
Versions: 28
Compression:
Stored size: 1.24 KB
Contents
.head = step(@runseq.form_step, @xvars['total_form_steps']) %p - user = current_ma_user || User.new - form_class = 'formtastic' - next_step = 'end_form' - if @help %div(data-role="collapsible" data-theme="e" data-content-theme="c" data-mini="true") %h3 Help %p= markdown(@help) = form_tag({ :action => next_step } , {:multipart => true, :onSubmit=>'return validate()', :class=>form_class, "data-ajax"=>"#{ajax?(@ui)}"}) do = hidden_field_tag 'xmain_id', @xmain.id = hidden_field_tag 'ajax', ajax?(@ui) = hidden_field_tag 'runseq_id', @runseq.id = hidden_field_tag 'step', @xvars[:current_step] %div(data-role="fieldcontain") = render :inline=> @ui %p = submit_tag NEXT %p :javascript $(function() { $('.required').append('<span style="color:red"> *</span>'); $('.refresh').append(" <img src='/images/refresh.png'/>"); $("input").keypress(function (evt) { //Deterime where our character code is coming from within the event var charCode = evt.charCode || evt.keyCode; if (charCode == 13) { //Enter key's keycode alert("Please click the button"); return false; } }); }); $( document ).one( "pagechange", function(){ $('input[type="file"]').textinput({theme: 'c'}); });
Version data entries
28 entries across 28 versions & 1 rubygems