mirror of
https://github.com/jasny/bootstrap.git
synced 2026-01-22 20:57:58 -05:00
Merge pull request #105 from GarthSnyder/2.3.1-j7-wip
Minor edits to File Upload docs: rm dup sentences, fix formats, clarify
This commit is contained in:
@@ -2044,13 +2044,11 @@ $('.carousel').carousel({
|
||||
|
||||
<h2>Usage</h2>
|
||||
<h3>Via data attributes</h3>
|
||||
<p>Add data attributes to register the file upload widget. The main container should either have the <code>.fileupload-new</code> class for a new record or if the record
|
||||
does not have file or <code>.fileupload-exists</code> if an existing file is present. Elements inside the container with the <code>.fileupload-new</code> and <code>.fileupload-exists</code>
|
||||
class will be shown or hidden based on the current state. The content of <code>.fileupload-preview</code> is replaced when a file is selected. Implement a button to clear
|
||||
the file with <code>data-dismiss="fileupload"</code>. The content of <code>.fileupload-preview</code> is replaced when a file is selected. Implement a button to clear the file with
|
||||
<code>data-dismiss="fileupload"</code>.</p>
|
||||
<p>Add data attributes to register the file upload widget. The main container should either have the <code>.fileupload-new</code> class for a new record (one with no file yet specified) or the <code>.fileupload-exists</code> class if an existing file is present. Elements inside the container with the <code>.fileupload-new</code> and <code>.fileupload-exists</code>
|
||||
classes will be shown or hidden based on the current state. The content of <code>.fileupload-preview</code> is replaced when a file is selected. Implement a button to clear
|
||||
the file with <code>data-dismiss="fileupload"</code>.</p>
|
||||
|
||||
<p>Via JavaScript</p>
|
||||
<h3>Via JavaScript</h3>
|
||||
<pre class="prettyprint linenums">$('.fileupload').fileupload()</pre>
|
||||
|
||||
<h3>Layout</h3>
|
||||
|
||||
Reference in New Issue
Block a user