diff --git a/docs/javascript.html b/docs/javascript.html index 4602d1b7..ac2bb766 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -2044,13 +2044,11 @@ $('.carousel').carousel({
Add data attributes to register the file upload widget. The main container should either have the .fileupload-new class for a new record or if the record
- does not have file or .fileupload-exists if an existing file is present. Elements inside the container with the .fileupload-new and .fileupload-exists
- class will be shown or hidden based on the current state. The content of .fileupload-preview is replaced when a file is selected. Implement a button to clear
- the file with data-dismiss="fileupload". The content of .fileupload-preview is replaced when a file is selected. Implement a button to clear the file with
- data-dismiss="fileupload".
Add data attributes to register the file upload widget. The main container should either have the .fileupload-new class for a new record (one with no file yet specified) or the .fileupload-exists class if an existing file is present. Elements inside the container with the .fileupload-new and .fileupload-exists
+ classes will be shown or hidden based on the current state. The content of .fileupload-preview is replaced when a file is selected. Implement a button to clear
+ the file with data-dismiss="fileupload".
Via JavaScript
+$('.fileupload').fileupload()
{{_i}}Add data attributes to register the file upload widget. The main container should either have the .fileupload-new class for a new record or if the record
- does not have file or .fileupload-exists if an existing file is present. Elements inside the container with the .fileupload-new and .fileupload-exists
- class will be shown or hidden based on the current state. The content of .fileupload-preview is replaced when a file is selected. Implement a button to clear
- the file with data-dismiss="fileupload". The content of .fileupload-preview is replaced when a file is selected. Implement a button to clear the file with
- data-dismiss="fileupload".{{/i}}
{{_i}}Add data attributes to register the file upload widget. The main container should either have the .fileupload-new class for a new record (one with no file yet specified) or the .fileupload-exists class if an existing file is present. Elements inside the container with the .fileupload-new and .fileupload-exists
+ classes will be shown or hidden based on the current state. The content of .fileupload-preview is replaced when a file is selected. Implement a button to clear
+ the file with data-dismiss="fileupload".{{/i}}
{{_i}}Via JavaScript{{/i}}
+$('.fileupload').fileupload()