fixing issue with save js
Oleg
committed Mar 22, 2011
commit dc051a99b46462c009d2c45fa7f10bd933aa52b5
Showing 3
changed files with
7 additions
and 5 deletions
app/views/cms_admin/pages/_form.html.erb
+1
-1
| @@ | @@ -4,7 +4,7 @@ |
| <input type='checkbox'/> | |
| Published | |
| </label> | |
| - | <a class='big button' href='#'></a> |
| + | <button></button> |
| </div> | |
| <%= render :partial => 'cms_admin/uploads/index' %> | |
| <% end %> | |
public/javascripts/comfortable_mexican_sofa/cms.js
+4
-4
| @@ | @@ -145,15 +145,15 @@ $.CMS = function(){ |
| enable_page_save_widget : function(){ | |
| $('#page_save input').attr('checked', $('input#cms_page_is_published').is(':checked')); | |
| - | $('#page_save a').html($('input#cms_page_submit').val()); |
| + | $('#page_save button').html($('input#cms_page_submit').val()); |
| - | $('#page_save a').bind('click', function(){ |
| + | $('#page_save input').bind('click', function(){ |
| $('input#cms_page_is_published').attr('checked', $(this).is(':checked')); | |
| }) | |
| $('input#cms_page_is_published').bind('click', function(){ | |
| - | $('#page_save a').attr('checked', $(this).is(':checked')); |
| + | $('#page_save input').attr('checked', $(this).is(':checked')); |
| }) | |
| - | $('#page_save a').bind('click', function(){ |
| + | $('#page_save button').bind('click', function(){ |
| $('input#cms_page_submit').click(); | |
| }) | |
| }, | |
public/stylesheets/comfortable_mexican_sofa/structure.css
+2
-0
| @@ | @@ -80,6 +80,7 @@ html, body { |
| /* -- Buttons ------------------------------------------------------------ */ | |
| a.button, | |
| + | button, |
| input[type='button'], | |
| input[type='submit'], | |
| input[type='reset'], | |
| @@ | @@ -100,6 +101,7 @@ table.formatted td.action_links a { |
| text-shadow: #f5f5f5 1px 1px; | |
| } | |
| a.button:hover, | |
| + | button:hover, |
| input[type='button']:hover, | |
| input[type='submit']:hover, | |
| input[type='reset']:hover, | |