Sha256: 91939620fbf6a21e99a5671d20529d9fdee93d9f11633bcc04bbae5e6ac740ae
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
!!! html %meta{ "http-equiv" => "X-UA-Compatible", :content => "IE=9"} %html{ "ng-app" => "quartz"} %head %link{ :rel => "stylesheet", :type => "text/css", :href => "/style.css"} %link{ :rel => "stylesheet", :type => "text/css", :href => "/bootstrap/css/bootstrap.min.css"} %script{ :src => "/js/angular.min.js" } %script{ :src => "/js/angular-resource.js" } %script{ :src => "/js/quartz.js" } %title QuartzFlow %body %h1{ :id => "mainheader", "ng-controller" => "LoginCtrl"} QuartzFlow %button{ :type => "button", :class => "btn btn-xs", :id => "logout", "ng-click" => "doLogout()" } logout %div{ :class => "container", "ng-view" => ''} %script{ :src => "/js/jquery-1.10.2.min.js" } %script{ :src => "/bootstrap/js/bootstrap.min.js"} -# This is the file-upload iframe %iframe{ :id => "uploadiframe", :name => "uploadiframe", :onload => 'handleIframeLoad("uploadiframe")' } -# File input handling. See http://www.abeautifulsite.net/blog/2013/08/whipping-file-inputs-into-shape-with-bootstrap-3/ :javascript console.log("HI"); $(document) .on('change', '.btn-file :file', function() { var input = $(this), numFiles = input.get(0).files ? input.get(0).files.length : 1, label = input.val().replace(/\\/g, '/').replace(/.*\//, ''); console.log("CHANGED: " + label); input.trigger('fileselect', [numFiles, label]); var textInput = $(this).parents('.input-group').find(':text'); textInput.val(label); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quartz_flow-0.0.4 | views/index.haml |