ravenlp 16 年之前
父節點
當前提交
8a4875d9e1
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      admin/scripts/tools.js

+ 11 - 0
admin/scripts/tools.js 查看文件

@@ -33,4 +33,15 @@ function verifyExistingUser() {
33 33
 	return false;
34 34
 }
35 35
 
36
+function selectFeedType(feed_url,username){
37
+		var source = $('source');
38
+		if(source.selectedIndex != 0){
39
+			$('import_as').style.display="none";
40
+			$('url_label').firstChild.nodeValue = source[source.selectedIndex].firstChild.nodeValue + username;
41
+		}else{
42
+			$('import_as').style.display="block";
43
+			$('url_label').firstChild.nodeValue = feed_url;
44
+		}
45
+}
46
+
36 47
 //-->