Added an optional flag on some plugin attributes [#828]

This commit is contained in:
Jon Buckley 2012-03-02 21:49:06 -05:00
Родитель b27ed87710 5ce8e49360
Коммит a51af10eda
20 изменённых файлов: 134 добавлений и 60 удалений

Просмотреть файл

@ -160,7 +160,8 @@
nameofworkurl: {
elem: "input",
type: "url",
label: "Url of Work"
label: "Url of Work",
optional: true
},
copyrightholder: {
elem: "input",
@ -170,7 +171,8 @@
copyrightholderurl: {
elem: "input",
type: "url",
label: "Copyright Holder Url"
label: "Copyright Holder Url",
optional: true
},
license: {
elem: "input",
@ -180,7 +182,8 @@
licenseurl: {
elem: "input",
type: "url",
label: "License URL"
label: "License URL",
optional: true
},
target: "attribution-container"
}

Просмотреть файл

@ -170,7 +170,8 @@
onFrame: {
elem: "input",
type: "function",
label: "onFrame"
label: "onFrame",
optional: true
},
onEnd: {
elem: "input",

Просмотреть файл

@ -51,12 +51,14 @@ api - https://github.com/documentcloud/document-viewer/blob/master/public/javasc
width: {
elem: "input",
type: "text",
label: "Width"
label: "Width",
optional: true
},
height: {
elem: "input",
type: "text",
label: "Height"
label: "Height",
optional: true
},
src: {
elem: "input",
@ -66,17 +68,20 @@ api - https://github.com/documentcloud/document-viewer/blob/master/public/javasc
preload: {
elem: "input",
type: "boolean",
label: "Preload"
label: "Preload",
optional: true
},
page: {
elem: "input",
type: "number",
label: "Page Number"
label: "Page Number",
optional: true
},
aid: {
elem: "input",
type: "number",
label: "Annotation Id"
label: "Annotation Id",
optional: true
}
}
},

Просмотреть файл

@ -77,92 +77,110 @@
font: {
elem: "input",
type: "text",
label: "font"
label: "font",
optional: true
},
xid: {
elem: "input",
type: "text",
label: "Xid"
label: "Xid",
optional: true
},
href: {
elem: "input",
type: "url",
label: "Href"
label: "Href",
optional: true
},
site: {
elem: "input",
type: "url",
label:"Site"
label:"Site",
optional: true
},
height: {
elem: "input",
type: "text",
label: "Height"
label: "Height",
optional: true
},
width: {
elem: "input",
type: "text",
label: "Width"
label: "Width",
optional: true
},
action: {
elem: "select",
options: [ "like", "recommend" ],
label: "Action"
label: "Action",
optional: true
},
stream: {
elem: "select",
options: [ "false", "true" ],
label: "Stream"
label: "Stream",
optional: true
},
header: {
elem: "select",
options: [ "false", "true" ],
label: "Header"
label: "Header",
optional: true
},
layout: {
elem: "select",
options: [ "standard", "button_count", "box_count" ],
label: "Layout"
label: "Layout",
optional: true
},
max_rows: {
elem: "input",
type: "text",
label: "Max_rows"
label: "Max_rows",
optional: true
},
border_color: {
elem: "input",
type: "text",
label: "Border_color"
label: "Border_color",
optional: true
},
event_app_id: {
elem: "input",
type: "text",
label: "Event_app_id"
label: "Event_app_id",
optional: true
},
colorscheme: {
elem: "select",
options: [ "light", "dark" ],
label: "Colorscheme"
label: "Colorscheme",
optional: true
},
show_faces: {
elem: "select",
options: [ "false", "true" ],
label: "Showfaces"
label: "Showfaces",
optional: true
},
recommendations: {
elem: "select",
options: [ "false", "true" ],
label: "Recommendations"
label: "Recommendations",
optional: true
},
always_post_to_friends: {
elem: "input",
options: [ "false", "true" ],
label: "Always_post_to_friends"
label: "Always_post_to_friends",
optional: true
},
num_posts: {
elem: "input",
type: "text",
label: "Number_of_Comments"
label: "Number_of_Comments",
optional: true
}
}
},

Просмотреть файл

@ -187,7 +187,8 @@
userid: {
elem: "input",
type: "text",
label: "UserID"
label: "UserID",
optional: true
},
tags: {
elem: "input",
@ -198,32 +199,38 @@
elem: "input",
type: "text",
label: "Username"
optional: true
},
apikey: {
elem: "input",
type: "text",
label: "Api_key"
optional: true
},
target: "flickr-container",
height: {
elem: "input",
type: "text",
label: "Height"
optional: true
},
width: {
elem: "input",
type: "text",
label: "Width"
optional: true
},
padding: {
elem: "input",
type: "text",
label: "Padding"
optional: true
},
border: {
elem: "input",
type: "text",
label: "Border"
optional: true
},
numberofimages: {
elem: "input",

Просмотреть файл

@ -173,11 +173,13 @@
elem: "input",
type: "text",
label: "title"
optional: true
},
orientation: {
elem: "select",
options: [ "Vertical", "Horizontal" ],
label: "orientation"
optional: true
}
}
});

Просмотреть файл

@ -356,21 +356,25 @@ var googleCallback;
elem: "select",
options: [ "ROADMAP", "SATELLITE", "STREETVIEW", "HYBRID", "TERRAIN" ],
label: "Type"
optional: true
},
zoom: {
elem: "input",
type: "text",
label: "Zoom"
optional: true
},
lat: {
elem: "input",
type: "text",
label: "Lat"
optional: true
},
lng: {
elem: "input",
type: "text",
label: "Lng"
optional: true
},
location: {
elem: "input",
@ -381,11 +385,13 @@ var googleCallback;
elem: "input",
type: "text",
label: "Heading"
optional: true
},
pitch: {
elem: "input",
type: "text",
label: "Pitch"
optional: true
}
}
});

Просмотреть файл

@ -50,7 +50,8 @@
href: {
elem: "input",
type: "url",
label: "Link URL"
label: "Link URL",
optional: true
},
target: "image-container",
src: {
@ -61,7 +62,8 @@
text: {
elem: "input",
type: "text",
label: "TEXT"
label: "TEXT",
optional: true
}
}
},

Просмотреть файл

@ -70,32 +70,38 @@
memberid: {
elem: "input",
type: "text",
label: "Member ID"
label: "Member ID",
optional: true
},
format: {
elem: "input",
type: "text",
label: "Format"
label: "Format",
optional: true
},
companyid: {
elem: "input",
type: "text",
label: "Company ID"
label: "Company ID",
optional: true
},
modules: {
elem: "input",
type: "text",
label: "Modules"
label: "Modules",
optional: true
},
productid: {
elem: "input",
type: "text",
label: "productid"
label: "productid",
optional: true
},
related: {
elem: "input",
type: "text",
label: "related"
label: "related",
optional: true
},
start: {
elem: "input",

Просмотреть файл

@ -53,7 +53,8 @@
salutation : {
elem: "input",
type: "text",
label: "Text"
label: "Text",
optional: true
},
name: {
elem: "input",
@ -63,7 +64,8 @@
role: {
elem: "input",
type: "text",
label: "Text"
label: "Text",
optional: true
}
}
},

Просмотреть файл

@ -202,7 +202,8 @@
dynamic: {
elem: "input",
type: "text",
label: "Dynamic"
label: "Dynamic",
optional: true
}
}
});

Просмотреть файл

@ -305,22 +305,26 @@
type: {
elem: "select",
options: [ "ROADMAP", "SATELLITE", "TERRAIN" ],
label: "Type"
label: "Type",
optional: true
},
zoom: {
elem: "input",
type: "text",
label: "Zoom"
label: "Zoom",
optional: true
},
lat: {
elem: "input",
type: "text",
label: "Lat"
label: "Lat",
optional: true
},
lng: {
elem: "input",
type: "text",
label: "Lng"
label: "Lng",
optional: true
},
location: {
elem: "input",
@ -330,7 +334,8 @@
markers: {
elem: "input",
type: "text",
label: "List Markers"
label: "List Markers",
optional: true
}
}
});

Просмотреть файл

@ -155,7 +155,8 @@
noPause: {
elem: "select",
options: [ "TRUE", "FALSE" ],
label: "No Loop"
label: "No Loop",
optional: true
}
}
});

Просмотреть файл

@ -123,12 +123,14 @@
image: {
elem: "input",
type: "url",
label: "Image Src"
label: "Image Src",
optional: true
},
href: {
elem: "input",
type: "url",
label: "URL"
label: "URL",
optional: true
}
}
});

Просмотреть файл

@ -131,12 +131,14 @@
innerHTML: {
elem: "input",
type: "text",
label: "innerHTML"
label: "innerHTML",
optional: true
},
direction: {
elem: "input",
type: "text",
label: "direction"
label: "direction",
optional: true
}
}
});

Просмотреть файл

@ -269,17 +269,20 @@
api_key: { // Required for Blog Info and Blog Post retrievals
elem: "input",
type: "text",
label: "Application_Key"
label: "Application_Key",
optional: true
},
size: {
elem: "select",
options: [ 16, 24, 30, 40, 48, 64, 96, 128, 512 ],
label: "avatarSize"
label: "avatarSize",
optional: true
},
blogId: { // Required for BLOGPOST requests
elem: "input",
type: "number",
label: "Blog_ID"
label: "Blog_ID",
optional: true
},
/* Optional for Photo and Video BlogPosts, defaulted to 250 pixels for photos and 400 for videos if not provided or provided width
* is not found in their arrays. If multiple videos or photos are in the blogpost then it will use this same size for all of them unless
@ -288,7 +291,8 @@
width: {
elem: "input",
type: "number",
label: "Photo_Width"
label: "Photo_Width",
optional: true
}
}
},

Просмотреть файл

@ -60,12 +60,14 @@
height: {
elem: "input",
type: "number",
label: "Height"
label: "Height",
optional: true
},
width: {
elem: "input",
type: "number",
label: "Width"
label: "Width",
optional: true
}
}
},

Просмотреть файл

@ -38,7 +38,8 @@
id: {
elem: "input",
type: "text",
label: "Id"
label: "Id",
optional: true
},
start: {
elem: "input",

Просмотреть файл

@ -54,7 +54,8 @@ var wikiCallback;
lang: {
elem: "input",
type: "text",
label: "Language"
label: "Language",
optional: true
},
src: {
elem: "input",
@ -64,12 +65,14 @@ var wikiCallback;
title: {
elem: "input",
type: "text",
label: "Title"
label: "Title",
optional: true
},
numberofwords: {
elem: "input",
type: "text",
label: "Num Of Words"
label: "Num Of Words",
optional: true
},
target: "wikipedia-container"
}

Просмотреть файл

@ -88,7 +88,8 @@
color: {
elem: "input",
type: "text",
label: "Color"
label: "Color",
optional: true
}
}
},