This commit is contained in:
denise rigato 2012-01-11 18:33:51 -05:00 коммит произвёл Christopher De Cairos
Родитель 54f0fe04e2
Коммит bf1257d30e
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -54,10 +54,10 @@
var _loadResults = function( data, options ) { var _loadResults = function( data, options ) {
var title = data.title, var title = data.title,
html = data.html; html = data.html;
if( data && title && html ) { if ( data && title && html ) {
_album[ options.containerid ].htmlString = "<div>" + html + "</div>"; _album[ options.containerid ].htmlString = "<div>" + html + "</div>";
} else { } else {
if( Popcorn.plugin.debug ) { if ( Popcorn.plugin.debug ) {
throw new Error( "Did not receive data from server." ); throw new Error( "Did not receive data from server." );
} }
} }
@ -84,7 +84,7 @@
var key = options.containerid = Popcorn.guid(), var key = options.containerid = Popcorn.guid(),
container = _container[ key ] = document.createElement( "div" ), container = _container[ key ] = document.createElement( "div" ),
target = _target[ key ] = document.getElementById( options.target ); target = _target[ key ] = document.getElementById( options.target );
if( !target && Popcorn.plugin.debug ) { if ( !target && Popcorn.plugin.debug ) {
throw new Error( "Target container could not be found." ); throw new Error( "Target container could not be found." );
} }
container.style.display = "none"; container.style.display = "none";