ENHANCEMENT Using jQuery layout manager plugin to size panels in main CMS interface. Removed custom javascript resizing and CSS rules.
API CHANGE Removed custom resizing javascript methods: window.ontabschanged, window.onresize, fixRightWidth(), fixHeight_left()
API CHANGE Removed DraggableSeparator, SideTabs, SideTabItem javascript classes
API CHANGE Removed Effect.ReSize and Highlighter javascript helper classes
API CHANGE Modified template structure in CMSMain_left.ss, CMSMain_right.ss and LeftAndMain.ss
API CHANGE Modified markup IDs in LeftAndMain/CMSMain templates, removed "left", "right", "contentPanel", "bottom"
ENHANCEMENT Using jquery-latest (currently 1.3) in CMSMain and LeftAndMain
ENHANCEMENT Added jQuery UI library and "smoothness" theme to default CMS interface
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92581 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:35:20 +01:00
|
|
|
var outerLayout;
|
|
|
|
|
2009-11-21 03:36:00 +01:00
|
|
|
(function($) {
|
|
|
|
$('body.CMSMain').concrete({ss:{cmsMain:{
|
|
|
|
mainLayout: null,
|
|
|
|
|
|
|
|
onmatch: function() {
|
|
|
|
this.mainLayout = this.ss().cmsMain()._setupLayout();
|
ENHANCEMENT Using jQuery layout manager plugin to size panels in main CMS interface. Removed custom javascript resizing and CSS rules.
API CHANGE Removed custom resizing javascript methods: window.ontabschanged, window.onresize, fixRightWidth(), fixHeight_left()
API CHANGE Removed DraggableSeparator, SideTabs, SideTabItem javascript classes
API CHANGE Removed Effect.ReSize and Highlighter javascript helper classes
API CHANGE Modified template structure in CMSMain_left.ss, CMSMain_right.ss and LeftAndMain.ss
API CHANGE Modified markup IDs in LeftAndMain/CMSMain templates, removed "left", "right", "contentPanel", "bottom"
ENHANCEMENT Using jquery-latest (currently 1.3) in CMSMain and LeftAndMain
ENHANCEMENT Added jQuery UI library and "smoothness" theme to default CMS interface
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92581 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:35:20 +01:00
|
|
|
},
|
2009-11-21 03:36:00 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialize jQuery layout manager with the following panes:
|
|
|
|
* - east: Tree, Page Version History, Site Reports
|
|
|
|
* - center: Form
|
|
|
|
* - west: "Insert Image", "Insert Link", "Insert Flash" panes
|
|
|
|
* - north: CMS area menu bar
|
|
|
|
* - south: "Page view", "profile" and "logout" links
|
|
|
|
*/
|
|
|
|
_setupLayout: function() {
|
|
|
|
// layout containing the tree, CMS menu, the main form etc.
|
|
|
|
var layout = $('body').layout({
|
|
|
|
defaults: {
|
|
|
|
// TODO Reactivate once we have localized values
|
|
|
|
togglerTip_open: '',
|
|
|
|
togglerTip_closed: '',
|
|
|
|
resizerTip: '',
|
|
|
|
sliderTip: ''
|
|
|
|
},
|
|
|
|
north: {
|
|
|
|
slidable: false,
|
|
|
|
resizable: false,
|
|
|
|
size: 35,
|
|
|
|
togglerLength_open: 0
|
|
|
|
},
|
|
|
|
south: {
|
|
|
|
slidable: false,
|
|
|
|
resizable: false,
|
|
|
|
size: 20,
|
|
|
|
togglerLength_open: 0
|
|
|
|
},
|
|
|
|
east: {
|
|
|
|
initClosed: true,
|
|
|
|
fxName: "none"
|
|
|
|
},
|
|
|
|
west: {
|
|
|
|
size: 250,
|
|
|
|
onresize: function () { $("#treepanes").accordion("resize"); },
|
|
|
|
onopen: function () { $("#treepanes").accordion("resize"); },
|
|
|
|
fxName: "none"
|
|
|
|
},
|
|
|
|
center: {}
|
|
|
|
});
|
|
|
|
|
|
|
|
// Adjust tree accordion etc. in left panel to work correctly
|
|
|
|
// with jQuery.layout (see http://layout.jquery-dev.net/tips.html#Widget_Accordion)
|
|
|
|
this.find("#treepanes").accordion({
|
|
|
|
fillSpace: true,
|
|
|
|
animated: false
|
|
|
|
});
|
|
|
|
|
|
|
|
return layout;
|
ENHANCEMENT Using jQuery layout manager plugin to size panels in main CMS interface. Removed custom javascript resizing and CSS rules.
API CHANGE Removed custom resizing javascript methods: window.ontabschanged, window.onresize, fixRightWidth(), fixHeight_left()
API CHANGE Removed DraggableSeparator, SideTabs, SideTabItem javascript classes
API CHANGE Removed Effect.ReSize and Highlighter javascript helper classes
API CHANGE Modified template structure in CMSMain_left.ss, CMSMain_right.ss and LeftAndMain.ss
API CHANGE Modified markup IDs in LeftAndMain/CMSMain templates, removed "left", "right", "contentPanel", "bottom"
ENHANCEMENT Using jquery-latest (currently 1.3) in CMSMain and LeftAndMain
ENHANCEMENT Added jQuery UI library and "smoothness" theme to default CMS interface
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92581 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:35:20 +01:00
|
|
|
}
|
2009-11-21 03:36:00 +01:00
|
|
|
}}});
|
ENHANCEMENT Using jQuery layout manager plugin to size panels in main CMS interface. Removed custom javascript resizing and CSS rules.
API CHANGE Removed custom resizing javascript methods: window.ontabschanged, window.onresize, fixRightWidth(), fixHeight_left()
API CHANGE Removed DraggableSeparator, SideTabs, SideTabItem javascript classes
API CHANGE Removed Effect.ReSize and Highlighter javascript helper classes
API CHANGE Modified template structure in CMSMain_left.ss, CMSMain_right.ss and LeftAndMain.ss
API CHANGE Modified markup IDs in LeftAndMain/CMSMain templates, removed "left", "right", "contentPanel", "bottom"
ENHANCEMENT Using jquery-latest (currently 1.3) in CMSMain and LeftAndMain
ENHANCEMENT Added jQuery UI library and "smoothness" theme to default CMS interface
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92581 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:35:20 +01:00
|
|
|
|
2009-11-21 03:36:00 +01:00
|
|
|
$('#Form_EditForm').concrete({
|
ENHANCEMENT Using jQuery layout manager plugin to size panels in main CMS interface. Removed custom javascript resizing and CSS rules.
API CHANGE Removed custom resizing javascript methods: window.ontabschanged, window.onresize, fixRightWidth(), fixHeight_left()
API CHANGE Removed DraggableSeparator, SideTabs, SideTabItem javascript classes
API CHANGE Removed Effect.ReSize and Highlighter javascript helper classes
API CHANGE Modified template structure in CMSMain_left.ss, CMSMain_right.ss and LeftAndMain.ss
API CHANGE Modified markup IDs in LeftAndMain/CMSMain templates, removed "left", "right", "contentPanel", "bottom"
ENHANCEMENT Using jquery-latest (currently 1.3) in CMSMain and LeftAndMain
ENHANCEMENT Added jQuery UI library and "smoothness" theme to default CMS interface
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92581 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 03:35:20 +01:00
|
|
|
|
|
|
|
})
|
2009-11-21 03:36:00 +01:00
|
|
|
})(jQuery);
|