| | 8 | |
| | 9 | /* MOVABLE TYPE CORE JAVASCRIPT *****************************************************************/ |
| | 10 | |
| | 11 | /* Legacy Function Mappings *****************************************************************/ |
| | 12 | /* The following functions are here to support legacy MT templates. If you have refreshed your JavaScript template but still use olderMT comment templates, you may need to uncomment this block in orderfor those templates to work properly. Simply remove the wrapping'mt:Ignore' tag to do so. */ |
| | 13 | function hideDocumentElement(id) { return mtHide(id) } |
| | 14 | function showDocumentElement(id) { return mtShow(id) } |
| | 15 | function individualArchivesOnLoad() { return mtEntryOnLoad() } |
| | 16 | function writeCommenterGreeting() { return mtShowGreeting() } |
| | 17 | function rememberMe(f) { return mtRememberMe(f) } |
| | 18 | function forgetMe(f) { return mtForgetMe(f) } |
| | 19 | function getXmlHttp() { return mtGetXmlHttp() } |
| 33 | | |
| 34 | | /* Login Functions *****************************************************************/ |
| 35 | | #_login/#_logout // If request contains a '#_login' or '#_logout' hash, use this to also delete the blog-side user cookie, since we're coming back from a login, logout or edit function mtSaveUser(f) // Persists a copy of the current user cookie into the browser cookie stash. |
| | 45 | #_login/#_logout // If request contains a '#_login' or '#_logout' hash, use this to also delete the blog-side user cookie, since we're coming back from a login, logout or edit |
| | 46 | function mtSaveUser(f) // Persists a copy of the current user cookie into the browser cookie stash. |
| | 74 | |
| | 75 | <mt:Ignore> |
| | 76 | /* user object |
| | 77 | -- saved in user cookie -- |
| | 78 | u.name (display name) |
| | 79 | u.url (link to home page) |
| | 80 | u.email (for anonymous only) |
| | 81 | u.userpic (url for commenter/author) |
| | 82 | u.profile (link to profile) |
| | 83 | u.is_trusted (boolean) |
| | 84 | u.is_author (user has posting rights) |
| | 85 | u.is_banned (banned status; neither post/comment perms) |
| | 86 | u.can_post (has permission to post) |
| | 87 | u.can_comment (has permission to comment) |
| | 88 | |
| | 89 | -- status fields -- |
| | 90 | u.is_authenticated (boolean) |
| | 91 | u.is_anonymous (user is anonymous) |
| | 92 | */ |
| | 93 | </mt:Ignore> |
| 69 | | /* END Movable Type Javascript *****************************************************************/ |
| | 105 | /* END Movable Type Core Javascript *****************************************************************/ |
| | 106 | |
| | 107 | |
| | 108 | |
| | 109 | /* MOVABLE TYPE COMMUNITY SOLUTION FUNCTIONS *****************************************************************/ |
| | 110 | |
| | 111 | function conditional_block(cond, id) // ** |
| | 112 | |
| | 113 | function mtScore(entry_id) // Functions for scoring entries. Scoring requires blog context, it is thus conditioned. |
| | 114 | function mtUpdateScores() // ** |
| | 115 | function mtScore_cb(s_hash) // ** |
| | 116 | |
| | 117 | function insert_score(s_hash, id, div_id, span, span_else) // Legacy functions for favoriting entries |
| | 118 | var favorite_cb_callbacks = []; |
| | 119 | function favorite_cb(s_hash) // ** |
| | 120 | function anchor(id, eid, cl, score) // ** |
| | 121 | function attachEvent(element, eventName, func) // ** |
| | 122 | function favorite(evt, entry_id, score_span) // ** |
| | 123 | |
| | 124 | function script_follow(id) // Functions to follow/leave feature |
| | 125 | function script_leave(id) // ** |
| | 126 | function follow(user_info) // ** |
| | 127 | function leave(user_info) // ** |
| | 128 | |
| | 129 | // Utility functions |
| | 130 | req = null; // ** Not used anywhere? |
| | 131 | function getCommenterName() // ** |
| | 132 | function trimString (str) // ** |
| | 133 | DOM // ** review |
| | 134 | function switchTabs( id, el ) // ** |
| | 135 | function defaultInputFocus( event ) // ** |
| | 136 | function defaultInputBlur( event ) // ** |
| | 137 | function setupInputDefault() // ** |
| | 138 | function mtSetUser(u) // Assigns a user object as the actively logged in user; also saves the user information in a browser cookie. |