Skip to content

Commit

Permalink
Dialog was incorrectly sized and closed even on an error on save click.
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Jul 23, 2010
1 parent 37fc1af commit 924b962
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions public/javascripts/refinery/admin.js
Expand Up @@ -547,7 +547,8 @@ var page_options = {
modal: true,
resizable: false,
autoOpen: false,
width: 600
width: 600,
height: 200
});

$('#add_page_part').click(function(e){
Expand Down Expand Up @@ -591,6 +592,8 @@ var page_options = {
$('#new_page_part_title').val('');

page_options.tabs.find('> ul li a').corner('top 5px');

$('#new_page_part_dialog').dialog('close');
}
);
}else{
Expand All @@ -599,9 +602,6 @@ var page_options = {
}else{
alert("You have not entered a title for the content section, please enter one.");
}


$('#new_page_part_dialog').dialog('close');
});

$('#new_page_part_cancel').click(function(e){
Expand Down
2 changes: 1 addition & 1 deletion public/stylesheets/refinery/refinery.css
Expand Up @@ -1221,7 +1221,7 @@ ul#plugins li {
width:auto;
}
#new_page_part_dialog .field {
padding: 30px 10px;
padding: 0px 10px;
}
.hide-overflow {
overflow: hidden;
Expand Down

0 comments on commit 924b962

Please sign in to comment.