|
@@ -48,12 +48,12 @@ import("lib-support/useful");
|
|
|
|
|
|
fb.ui = {
|
|
|
|
|
|
- * Creates tabs according to items parameter.
|
|
|
- * If actual url matches one of them, it is selected.
|
|
|
- * Next example renders tabs for .../callback/profile, .../callback/invite and .../callback/play.
|
|
|
- @example
|
|
|
- print(fb.ui.tabs("profile_Profile", "invite_Invite friends", "play_Play!"));
|
|
|
- */
|
|
|
+ * Creates tabs according to items parameter.
|
|
|
+ * If actual url matches one of them, it is selected.
|
|
|
+ * Next example renders tabs for .../callback/profile, .../callback/invite and .../callback/play.
|
|
|
+ @example
|
|
|
+ print(fb.ui.tabs("profile_Profile", "invite_Invite friends", "play_Play!"));
|
|
|
+ */
|
|
|
tabs: function (items) {
|
|
|
var menu = FB_TABS();
|
|
|
var lastSegment = request.path.split("/").pop();
|
|
@@ -68,19 +68,19 @@ fb.ui = {
|
|
|
return menu;
|
|
|
},
|
|
|
|
|
|
- * Creates FB_INTL from supplied element.
|
|
|
- * Element should have desc (description),
|
|
|
- * body (text that may contain {tokens}),
|
|
|
- * tokens (comma-separated list of token names
|
|
|
- * to be inserted as FB_INTL_TOKEN, optional)
|
|
|
- * and multiline (if defined, contains delimiter token name
|
|
|
- * that is inserted as <br />, optional).
|
|
|
- * fbIntl.tokens contains functions that populate token bodies,
|
|
|
- * you should populate it if you want to have FB_INTL_TOKENs inserted.
|
|
|
- * Token populator functions in localTokenFuns arg are also used, if supplied.
|
|
|
- * If replacer function does not exist, the token is not inserted
|
|
|
- * and no warning or error is raised.
|
|
|
- */
|
|
|
+ * Creates FB_INTL from supplied element.
|
|
|
+ * Element should have desc (description),
|
|
|
+ * body (text that may contain {tokens}),
|
|
|
+ * tokens (comma-separated list of token names
|
|
|
+ * to be inserted as FB_INTL_TOKEN, optional)
|
|
|
+ * and multiline (if defined, contains delimiter token name
|
|
|
+ * that is inserted as <br />, optional).
|
|
|
+ * fbIntl.tokens contains functions that populate token bodies,
|
|
|
+ * you should populate it if you want to have FB_INTL_TOKENs inserted.
|
|
|
+ * Token populator functions in localTokenFuns arg are also used, if supplied.
|
|
|
+ * If replacer function does not exist, the token is not inserted
|
|
|
+ * and no warning or error is raised.
|
|
|
+ */
|
|
|
fbIntl: function fbIntl (element, localTokenFuns) {
|
|
|
var result = FB_INTL({desc: element.desc});
|
|
|
|