Fixes for IE support of script tags being down the bottom

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65802 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-11-13 04:24:02 +00:00
parent 38e1030d11
commit 5b80a0c1d1
3 changed files with 13 additions and 13 deletions

View File

@ -9,9 +9,9 @@ _NEW_PAGES = new Array();
/**
* Add page action
*/
addpage = Class.create();
addpage.applyTo('#addpage');
addpage.prototype = {
addpageclass = Class.create();
addpageclass.applyTo('#addpage');
addpageclass.prototype = {
initialize: function () {
Observable.applyTo($(_HANDLER_FORMS[this.id]));
this.getElementsByTagName('button')[0].onclick = returnFalse;
@ -100,9 +100,9 @@ addpage.prototype = {
/**
* Search button click action
*/
search = Class.create();
search.applyTo('#search');
search.prototype = {
searchclass = Class.create();
searchclass.applyTo('#search');
searchclass.prototype = {
initialize : function() {
Observable.applyTo($(_HANDLER_FORMS.search));
},
@ -133,9 +133,9 @@ SiteTreeFilterAddCriteria.prototype = {
/**
* Batch Actions button click action
*/
batchactions = Class.create();
batchactions.applyTo('#batchactions');
batchactions.prototype = {
batchactionsclass = Class.create();
batchactionsclass.applyTo('#batchactions');
batchactionsclass.prototype = {
initialize : function() {
Observable.applyTo($(_HANDLER_FORMS.batchactions));

View File

@ -3,8 +3,8 @@ var _TRANSLATING_LANG = null;
/**
*
*/
LangSelector = Class.create();
LangSelector.prototype = {
LangSelectorClass = Class.create();
LangSelectorClass.prototype = {
initialize: function() {
if(this.selectedIndex != 0) {
@ -50,7 +50,7 @@ LangSelector.prototype = {
}
}
};
LangSelector.applyTo('#LangSelector');
LangSelectorClass.applyTo('#LangSelector');
/**
*

View File

@ -22,6 +22,6 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
'ModelAdmin.SAVED': "Saved",
'ModelAdmin.REALLYDELETE': "Do you really want to delete?",
'ModelAdmin.DELETED': "Deleted",
'LeftAndMain.PAGEWASDELETED': "This page was deleted. To edit a page, select it from the left.",
'LeftAndMain.PAGEWASDELETED': "This page was deleted. To edit a page, select it from the left."
});
}