fix issue w/ no images attached

This commit is contained in:
John Bintz 2009-11-14 13:56:32 -05:00
parent e7732b8272
commit 58d45f89e6
1 changed files with 44 additions and 42 deletions

View File

@ -74,6 +74,7 @@ ComicImageOrdering.build_response = function() {
}; };
ComicImageOrdering.setup = function() { ComicImageOrdering.setup = function() {
if ($('comic-ordering')) {
Sortable.create($('comic-ordering'), { Sortable.create($('comic-ordering'), {
tag: 'div', tag: 'div',
handle: 'div', handle: 'div',
@ -125,6 +126,7 @@ ComicImageOrdering.setup = function() {
ComicImageOrdering.build_dropdowns(); ComicImageOrdering.build_dropdowns();
ComicImageOrdering.build_response(); ComicImageOrdering.build_response();
}
}; };
Event.observe(window, 'load', function() { Event.observe(window, 'load', function() {