Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 381
- Log:
Radiant is now packaged as a Gem - see Changeset #373, Changeset #374,
Changeset #375, Changeset #376, Changeset #377, Changeset #378,
Changeset #379 and Changeset #380. The application part of Radiant is
now mostly empty; it exists to provide a structure which hooks into the
gem and which provides a framework for extensions. Included in this big
changeset are all the deletions, additions and changes needed to go from
the old ROOL customised Radiant to a new ROOL customised Radiant, which
includes several custom extensions adapted from the old Radiant
modifications and requires Radiant 0.9.1 to be installed as a gem.
- Author:
- rool
- Date:
- Mon Mar 21 14:01:18 +0000 2011
- Size:
- 3008 Bytes
1 | // Ensure that relative_url_root is defined |
2 | if(typeof(relative_url_root) === 'undefined'){ relative_url_root = ''} |
3 | |
4 | // Popup Images |
5 | Popup.BorderImage = relative_url_root + '/images/admin/popup_border_background.png'; |
6 | Popup.BorderTopLeftImage = relative_url_root + '/images/admin/popup_border_top_left.png'; |
7 | Popup.BorderTopRightImage = relative_url_root + '/images/admin/popup_border_top_right.png'; |
8 | Popup.BorderBottomLeftImage = relative_url_root + '/images/admin/popup_border_bottom_left.png'; |
9 | Popup.BorderBottomRightImage = relative_url_root + '/images/admin/popup_border_bottom_right.png'; |
10 | |
11 | // Status Images |
12 | Status.SpinnerImage = relative_url_root + '/images/admin/status_spinner.gif'; |
13 | Status.BackgroundImage = relative_url_root + '/images/admin/status_background.png'; |
14 | Status.TopLeftImage = relative_url_root + '/images/admin/status_top_left.png'; |
15 | Status.TopRightImage = relative_url_root + '/images/admin/status_top_right.png'; |
16 | Status.BottomLeftImage = relative_url_root + '/images/admin/status_bottom_left.png'; |
17 | Status.BottomRightImage = relative_url_root + '/images/admin/status_bottom_right.png'; |
18 | |
19 | // Status Message Styles |
20 | Status.MessageColor = '#e5e5e5'; |
21 | Status.MessageFontFamily = '"Lucida Grande", "Bitstream Vera Sans", Helvetica, Verdana, Arial, sans-serif'; |
22 | Status.MessageFontSize = '90%'; |
23 | |
24 | // Use Modal Status Windows |
25 | Status.Modal = true; |
26 | Status.ModalOverlayColor = 'black'; |
27 | Status.ModalOverlayOpacity = 0.2; |
28 | |
29 | // Reload behaviors for Ajax Requests |
30 | Event.addBehavior.reassignAfterAjax = true; |
31 | |
32 | // Wire in Behaviors |
33 | Event.addBehavior({ |
34 | 'body': ShortcutKeysBehavior(), |
35 | |
36 | 'a.popup': Popup.TriggerBehavior(), |
37 | |
38 | 'table#site_map': SiteMapBehavior(), |
39 | |
40 | 'input#page_title': function() { |
41 | var title = this; |
42 | var slug = $('page_slug'); |
43 | var breadcrumb = $('page_breadcrumb'); |
44 | var oldTitle = title.value; |
45 | |
46 | if (!slug || !breadcrumb) return; |
47 | |
48 | new Form.Element.Observer(title, 0.15, function() { |
49 | if (oldTitle.toSlug() == slug.value) slug.value = title.value.toSlug(); |
50 | if (oldTitle == breadcrumb.value) breadcrumb.value = title.value; |
51 | oldTitle = title.value; |
52 | }); |
53 | }, |
54 | |
55 | 'a.toggle': Toggle.LinkBehavior({ |
56 | onLoad: function(link) { |
57 | if (/less/i.match(link.innerHTML)) Toggle.toggle(this.toggleWrappers, this.effect); |
58 | }, |
59 | afterToggle: function(link) { |
60 | link.toggleClassName('more'); |
61 | link.toggleClassName('less'); |
62 | if (/more/i.match(link.innerHTML)) { link.innerHTML = 'Less'; return; } |
63 | if (/less/i.match(link.innerHTML)) { link.innerHTML = 'More'; return; } |
64 | } |
65 | }), |
66 | |
67 | 'div#tab_control': TabControlBehavior(), |
68 | |
69 | 'table.index': RuledTableBehavior(), |
70 | |
71 | 'form': Status.FormBehavior(), |
72 | |
73 | 'form input.activate': function() { |
74 | this.activate(); |
75 | }, |
76 | |
77 | 'form textarea': CodeAreaBehavior(), |
78 | |
79 | 'input.date': DateInputBehavior(), |
80 | |
81 | 'select#page_status_id': PageStatusBehavior(), |
82 | |
83 | 'span.error': ValidationErrorBehavior() |
84 | |
85 | }); |