From 6e6f9f4cd4a8c849e31e9eba66210cc47665bba8 Mon Sep 17 00:00:00 2001 From: Arnold Daniels Date: Wed, 1 May 2013 03:29:52 -0700 Subject: [PATCH] Merge pull request #105 from GarthSnyder/2.3.1-j7-wip Minor edits to File Upload docs: rm dup sentences, fix formats, clarify --- docs/javascript.html | 10 ++++------ docs/templates/pages/javascript.mustache | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) 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