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({

Usage

Via data attributes

-

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

+

Via JavaScript

$('.fileupload').fileupload()

Layout

diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index b8ce260b..1acaf2ce 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -1964,13 +1964,11 @@ $('.carousel').carousel({

{{_i}}Usage{{/i}}

{{_i}}Via data attributes{{/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 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}}

+

{{_i}}Via JavaScript{{/i}}

$('.fileupload').fileupload()

Layout