diff --git a/css/ModelAdmin.css b/css/ModelAdmin.css index e9032219..29792178 100644 --- a/css/ModelAdmin.css +++ b/css/ModelAdmin.css @@ -9,7 +9,7 @@ body.ModelAdmin #left { } body.ModelAdmin #Form_AddForm fieldset { - float: left; + /* float: left; */ } body.ModelAdmin #Form_AddForm #ClassName { diff --git a/javascript/ModelAdmin.js b/javascript/ModelAdmin.js index a5b25444..425f9283 100644 --- a/javascript/ModelAdmin.js +++ b/javascript/ModelAdmin.js @@ -10,6 +10,14 @@ */ (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 */