forked from Botanical/BotanJS
Minor bug fixes
This commit is contained in:
parent
3e8e6362b2
commit
a35f33b1cf
@ -175,9 +175,18 @@
|
||||
{
|
||||
stage = IDOMElement( stage );
|
||||
// [html][/html]
|
||||
return "[sitefile"
|
||||
+ " collection=\"" + stage.getDAttribute( "collection" ) + "\""
|
||||
+ " size=\"" + stage.getDAttribute( "size" ) + "\"" + "]"
|
||||
var options = "";
|
||||
var opt;
|
||||
if( opt = stage.getDAttribute( "collection" ) )
|
||||
{
|
||||
options += " collection=\"1\"";
|
||||
}
|
||||
if( opt = stage.getDAttribute( "size" ) )
|
||||
{
|
||||
options += " size=\"" + opt + "\"";
|
||||
}
|
||||
|
||||
return "[sitefile" + options + "]"
|
||||
+ escapeStr( stage.getDAttribute( "value" ) )
|
||||
+ "[/sitefile]";
|
||||
};
|
||||
|
@ -43,6 +43,14 @@
|
||||
|
||||
var files = finfo.files;
|
||||
var l = files.length;
|
||||
|
||||
// XXX: Not traditional!
|
||||
// Maximum of 4 for listing
|
||||
if( ostage.parentNode.className == "h_img" && 4 < l )
|
||||
{
|
||||
l = 4;
|
||||
}
|
||||
|
||||
for( var i = 0; i < l; i ++ )
|
||||
{
|
||||
/** @type {_AstJson_.SiteFile} */
|
||||
|
@ -34,7 +34,7 @@
|
||||
delayCont( false );
|
||||
}
|
||||
, firstTime
|
||||
? ( 500 + Math.random()*4500 )
|
||||
? Math.random()*10000
|
||||
: ( 5500 + Math.random()*4500 )
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user