MINOR Fixed javascript syntax in CMSMain.js and LeftAndMain.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92637 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 02:37:48 +00:00
parent ccb7e89ae7
commit d5d4d73141
2 changed files with 26 additions and 39 deletions

View File

@ -11,9 +11,8 @@ var ss_MainLayout;
* with tree on left and main edit form on the right. * with tree on left and main edit form on the right.
* @name ss.CMSMain * @name ss.CMSMain
*/ */
$('body.CMSMain').concrete('ss', function($){return $('body.CMSMain').concrete('ss', function($){
/** @lends ss.CMSMain */ return/** @lends ss.CMSMain */{
{
/** /**
* Reference to jQuery.layout element * Reference to jQuery.layout element
@ -119,9 +118,8 @@ var ss_MainLayout;
* @class CMS-specific form behaviour * @class CMS-specific form behaviour
* @name ss.EditForm * @name ss.EditForm
*/ */
$('#Form_EditForm').concrete('ss', function($){return $('#Form_EditForm').concrete('ss', function($){
/** @lends ss.EditForm */ return/** @lends ss.EditForm */{
{
onmatch: function() { onmatch: function() {
// Alert the user on change of page-type - this might have implications // Alert the user on change of page-type - this might have implications
// on the available form fields etc. // on the available form fields etc.
@ -140,9 +138,8 @@ var ss_MainLayout;
* the two radiobuttons and setting the hidden "ParentID" field * the two radiobuttons and setting the hidden "ParentID" field
* @name ss.EditForm.ParentType * @name ss.EditForm.ParentType
*/ */
$('#Form_EditForm_ParentType').concrete('ss', function($){return $('#Form_EditForm_ParentType').concrete('ss', function($){
/** @lends ss.EditForm.ParentType */ return/** @lends ss.EditForm.ParentType */{
{
onmatch : function() { onmatch : function() {
var parentTypeRootEl = $('#Form_EditForm_ParentType_root'); var parentTypeRootEl = $('#Form_EditForm_ParentType_root');
var parentTypeSubpageEl = $('#Form_EditForm_ParentType_subpage'); var parentTypeSubpageEl = $('#Form_EditForm_ParentType_subpage');
@ -175,9 +172,8 @@ var ss_MainLayout;
* Visible on readonly older versions of a specific page at the moment. * Visible on readonly older versions of a specific page at the moment.
* @name ss.Form_EditForm_action_email * @name ss.Form_EditForm_action_email
*/ */
$('#Form_EditForm .Actions #Form_EditForm_action_email').concrete('ss', function($){return $('#Form_EditForm .Actions #Form_EditForm_action_email').concrete('ss', function($){
/** @lends ss.Form_EditForm_action_email */ return/** @lends ss.Form_EditForm_action_email */{
{
onclick: function(e) { onclick: function(e) {
window.open( window.open(
'mailto:?subject=' 'mailto:?subject='
@ -196,9 +192,8 @@ var ss_MainLayout;
* Used for readonly older versions of a specific page. * Used for readonly older versions of a specific page.
* @name ss.Form_EditForm_action_print * @name ss.Form_EditForm_action_print
*/ */
$('#Form_EditForm .Actions #Form_EditForm_action_print').concrete('ss', function($){return $('#Form_EditForm .Actions #Form_EditForm_action_print').concrete('ss', function($){
/** @lends ss.Form_EditForm_action_print */ return/** @lends ss.Form_EditForm_action_print */{
{
onclick: function(e) { onclick: function(e) {
var printURL = $(this[0].form).attr('action').replace(/\?.*$/,'') var printURL = $(this[0].form).attr('action').replace(/\?.*$/,'')
+ '/printable/' + '/printable/'
@ -215,9 +210,8 @@ var ss_MainLayout;
* @class A "rollback" to a specific version needs user confirmation. * @class A "rollback" to a specific version needs user confirmation.
* @name ss.Form_EditForm_action_rollback * @name ss.Form_EditForm_action_rollback
*/ */
$('#Form_EditForm .Actions #Form_EditForm_action_rollback').concrete('ss', function($){return $('#Form_EditForm .Actions #Form_EditForm_action_rollback').concrete('ss', function($){
/** @lends ss.Form_EditForm_action_rollback */ return/** @lends ss.Form_EditForm_action_rollback */{
{
onclick: function(e) { onclick: function(e) {
// @todo i18n // @todo i18n
return confirm("Do you really want to copy the published content to the stage site?"); return confirm("Do you really want to copy the published content to the stage site?");
@ -228,9 +222,8 @@ var ss_MainLayout;
* @class All forms in the right content panel should have closeable jQuery UI style titles. * @class All forms in the right content panel should have closeable jQuery UI style titles.
* @name ss.contentPanel.form * @name ss.contentPanel.form
*/ */
$('#contentPanel form').concrete('ss', function($){return $('#contentPanel form').concrete('ss', function($){
/** @lends ss.contentPanel.form */ return/** @lends ss.contentPanel.form */{
{
onmatch: function() { onmatch: function() {
// Style as title bar // Style as title bar
this.find(':header:first').titlebar({ this.find(':header:first').titlebar({
@ -251,9 +244,8 @@ var ss_MainLayout;
* similar to "Smart Search" criteria in iTunes. * similar to "Smart Search" criteria in iTunes.
* @name ss.Form_SeachTreeForm * @name ss.Form_SeachTreeForm
*/ */
$('#Form_SearchTreeForm').concrete('ss', function($) {return $('#Form_SearchTreeForm').concrete('ss', function($) {
/** @lends ss.Form_SeachTreeForm */ return/** @lends ss.Form_SeachTreeForm */{
{
/** /**
* @type DOMElement * @type DOMElement

View File

@ -11,9 +11,8 @@
* panel and an edit form. * panel and an edit form.
* @name ss.LeftAndMain * @name ss.LeftAndMain
*/ */
$('.LeftAndMain').concrete('ss', function($){return $('.LeftAndMain').concrete('ss', function($){
/** @lends ss.EditMemberProfile */ return/** @lends ss.EditMemberProfile */ {
{
/** /**
* @type Number * @type Number
@ -98,9 +97,8 @@
* Takes care of resizing tabsets within the layout container. * Takes care of resizing tabsets within the layout container.
* @name ss.Form_EditForm * @name ss.Form_EditForm
*/ */
$('#Form_EditForm').concrete('ss',function($){return $('#Form_EditForm').concrete('ss',function($){
/** @lends ss.Form_EditForm */ return/** @lends ss.Form_EditForm */{
{
/** /**
* @type String HTML text to show when the form has been deleted. * @type String HTML text to show when the form has been deleted.
@ -249,9 +247,8 @@
* clicked button from a form.onsubmit event. * clicked button from a form.onsubmit event.
* @name ss.Form_EditForm.Actions.submit * @name ss.Form_EditForm.Actions.submit
*/ */
$('#Form_EditForm .Actions :submit').concrete('ss', function($){return $('#Form_EditForm .Actions :submit').concrete('ss', function($){
/** @lends ss.Form_EditForm.Actions.submit */ return/** @lends ss.Form_EditForm.Actions.submit */{
{
onclick: function(e) { onclick: function(e) {
$(this[0].form).ajaxSubmit(this); $(this[0].form).ajaxSubmit(this);
return false; return false;
@ -262,9 +259,8 @@
* @class Container for tree actions like "create", "search", etc. * @class Container for tree actions like "create", "search", etc.
* @name ss.TreeActions * @name ss.TreeActions
*/ */
$('#TreeActions').concrete('ss', function($){return $('#TreeActions').concrete('ss', function($){
/** @lends ss.TreeActions */ return/** @lends ss.TreeActions */{
{
/** /**
* Setup "create", "search", "batch actions" layers above tree. * Setup "create", "search", "batch actions" layers above tree.
@ -284,9 +280,8 @@
* through a modal dialog. * through a modal dialog.
* @name ss.EditMemberProfile * @name ss.EditMemberProfile
*/ */
$('a#EditMemberProfile').concrete('ss', function($){return $('a#EditMemberProfile').concrete('ss', function($){
/** @lends ss.EditMemberProfile */ return/** @lends ss.EditMemberProfile */{
{
onmatch: function() { onmatch: function() {
var self = this; var self = this;