MINOR Javascript variable declarations in CMSMain_left.js (#4741)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@93762 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-27 01:42:24 +00:00 committed by Sam Minnee
parent 4e9d2c3663
commit 064aa64886

View File

@ -9,6 +9,7 @@ _NEW_PAGES = new Array();
/** /**
* Add page action * Add page action
*/ */
var addpageclass;
addpageclass = Class.create(); addpageclass = Class.create();
addpageclass.applyTo('#addpage'); addpageclass.applyTo('#addpage');
addpageclass.prototype = { addpageclass.prototype = {
@ -95,11 +96,12 @@ addpageclass.prototype = {
showAddPageError: function(response) { showAddPageError: function(response) {
errorMessage(ss.i18n._t('CMSMAIN.ERRORADDINGPAGE'), response); errorMessage(ss.i18n._t('CMSMAIN.ERRORADDINGPAGE'), response);
} }
} };
/** /**
* Search button click action * Search button click action
*/ */
var searchclass;
searchclass = Class.create(); searchclass = Class.create();
searchclass.applyTo('#search'); searchclass.applyTo('#search');
searchclass.prototype = { searchclass.prototype = {
@ -118,7 +120,7 @@ searchclass.prototype = {
} }
} }
SiteTreeFilter = Class.create(); var SiteTreeFilter = Class.create();
SiteTreeFilter.applyTo('#siteTreeFilterList'); SiteTreeFilter.applyTo('#siteTreeFilterList');
SiteTreeFilter.prototype = { SiteTreeFilter.prototype = {
initialize: function () { initialize: function () {
@ -156,7 +158,7 @@ SiteTreeFilter.prototype = {
/** /**
* Control the site tree filter * Control the site tree filter
*/ */
SiteTreeFilterForm = Class.create(); var SiteTreeFilterForm = Class.create();
SiteTreeFilterForm.applyTo('form#search_options'); SiteTreeFilterForm.applyTo('form#search_options');
SiteTreeFilterForm.prototype = { SiteTreeFilterForm.prototype = {
initialize: function() { initialize: function() {
@ -230,7 +232,7 @@ SiteTreeFilterForm.prototype = {
/** /**
* Add Criteria Drop-down onchange action which allows more criteria to be shown * Add Criteria Drop-down onchange action which allows more criteria to be shown
*/ */
SiteTreeFilterAddCriteria = Class.create(); var SiteTreeFilterAddCriteria = Class.create();
SiteTreeFilterAddCriteria.applyTo('#SiteTreeFilterAddCriteria'); SiteTreeFilterAddCriteria.applyTo('#SiteTreeFilterAddCriteria');
SiteTreeFilterAddCriteria.prototype = { SiteTreeFilterAddCriteria.prototype = {
onchange : function() { onchange : function() {
@ -244,7 +246,7 @@ SiteTreeFilterAddCriteria.prototype = {
/** /**
* Batch Actions button click action * Batch Actions button click action
*/ */
batchactionsclass = Class.create(); var batchactionsclass = Class.create();
batchactionsclass.applyTo('#batchactions'); batchactionsclass.applyTo('#batchactions');
batchactionsclass.prototype = { batchactionsclass.prototype = {
@ -415,7 +417,7 @@ Behaviour.register({
/** /**
* Publish selected pages action * Publish selected pages action
*/ */
publishpage = Class.create(); var publishpage = Class.create();
publishpage.applyTo('#batchactions_options'); publishpage.applyTo('#batchactions_options');
publishpage.prototype = { publishpage.prototype = {
onsubmit : function() { onsubmit : function() {
@ -457,12 +459,13 @@ publishpage.prototype = {
return false; return false;
} }
} };
/** /**
* Delete selected pages action * Delete selected pages action
*/ */
var deletepage;
deletepage = Class.create(); deletepage = Class.create();
deletepage.applyTo('#Form_DeleteItemsForm'); deletepage.applyTo('#Form_DeleteItemsForm');
deletepage.prototype = { deletepage.prototype = {
@ -511,7 +514,7 @@ deletepage.prototype = {
return false; return false;
} }
} };
/** /**
* Tree context menu * Tree context menu