Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 173
- Log:
Updated to latest release of Beast according to the "getting started with
Beast" guide at:http://beast.caboo.se/forums/1/topics/381
This check-in includes frozen Edge Rails and has the beginnings of
configuration for the ROOL site included.
- Author:
- rool
- Date:
- Fri Mar 02 15:59:12 +0000 2007
- Size:
- 1808 Bytes
1 | // Place your application-specific JavaScript functions and classes here |
2 | // This file is automatically included by javascript_include_tag :defaults |
3 | |
4 | var TopicForm = { |
5 | editNewTitle: function(txtField) { |
6 | $('new_topic').innerHTML = (txtField.value.length > 5) ? txtField.value : 'New Topic'; |
7 | } |
8 | } |
9 | |
10 | var EditForm = { |
11 | // show the form |
12 | init: function(postId) { |
13 | $('edit-post-' + postId + '_spinner').show(); |
14 | this.clearReplyId(); |
15 | }, |
16 | |
17 | // sets the current post id we're editing |
18 | setReplyId: function(postId) { |
19 | $('edit').setAttribute('post_id', postId.toString()); |
20 | $('posts-' + postId + '-row').addClassName('editing'); |
21 | if($('reply')) $('reply').hide(); |
22 | }, |
23 | |
24 | // clears the current post id |
25 | clearReplyId: function() { |
26 | var currentId = this.currentReplyId() |
27 | if(!currentId || currentId == '') return; |
28 | |
29 | var row = $('posts-' + currentId + '-row'); |
30 | if(row) row.removeClassName('editing'); |
31 | $('edit').setAttribute('post_id', ''); |
32 | }, |
33 | |
34 | // gets the current post id we're editing |
35 | currentReplyId: function() { |
36 | return $('edit').getAttribute('post_id'); |
37 | }, |
38 | |
39 | // checks whether we're editing this post already |
40 | isEditing: function(postId) { |
41 | if (this.currentReplyId() == postId.toString()) |
42 | { |
43 | $('edit').show(); |
44 | $('edit_post_body').focus(); |
45 | return true; |
46 | } |
47 | return false; |
48 | }, |
49 | |
50 | // close reply, clear current reply id |
51 | cancel: function() { |
52 | this.clearReplyId(); |
53 | $('edit').hide() |
54 | } |
55 | } |
56 | |
57 | var ReplyForm = { |
58 | // yes, i use setTimeout for a reason |
59 | init: function() { |
60 | EditForm.cancel(); |
61 | $('reply').toggle(); |
62 | $('post_body').focus(); |
63 | // for Safari which is sometime weird |
64 | // setTimeout('$(\"post_body\").focus();',50); |
65 | } |
66 | } |
67 | |
68 | Event.addBehavior({ |
69 | '#search,#monitor_submit': function() { this.hide(); } |
70 | }) |