diff --git a/admin/scripts/tools.js b/admin/scripts/tools.js index a6b4e40..18eb605 100644 --- a/admin/scripts/tools.js +++ b/admin/scripts/tools.js @@ -33,4 +33,15 @@ function verifyExistingUser() { return false; } +function selectFeedType(feed_url,username){ + var source = $('source'); + if(source.selectedIndex != 0){ + $('import_as').style.display="none"; + $('url_label').firstChild.nodeValue = source[source.selectedIndex].firstChild.nodeValue + username; + }else{ + $('import_as').style.display="block"; + $('url_label').firstChild.nodeValue = feed_url; + } +} + //--> \ No newline at end of file