IMPROVEMENT Fix tab display and button position when adding a record (ticket #3029)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65332 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Saophalkun Ponlu 2008-11-05 23:14:00 +00:00
parent d8acf97911
commit f72f2b4dd0
2 changed files with 9 additions and 1 deletions

View File

@ -9,7 +9,7 @@ body.ModelAdmin #left {
} }
body.ModelAdmin #Form_AddForm fieldset { body.ModelAdmin #Form_AddForm fieldset {
float: left; /* float: left; */
} }
body.ModelAdmin #Form_AddForm #ClassName { body.ModelAdmin #Form_AddForm #ClassName {

View File

@ -10,6 +10,14 @@
*/ */
(function($) { (function($) {
$(document).ready(function() { $(document).ready(function() {
/**
* Add class ajaxActions class to the parent of Add button of AddForm
* so it float to the right
*/
$('#Form_AddForm_action_doCreate').livequery(function(){
$(this).parent().addClass('ajaxActions');
});
/** /**
* Attach tabs plugin to the set of search filter and edit forms * Attach tabs plugin to the set of search filter and edit forms
*/ */