Greasy Fork

Greasy Fork is available in English.

mytest

no.

当前为 2015-02-09 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/7967/35888/mytest.js

function displaySoftwareVersion(type){
	var isEditButtonClicked = $('#isEditButtonClicked').val();	
	if(isEditButtonClicked == 'false') {
		return;
	}
	var parentSoftwareVersions = document.getElementById("softwareVersions").value;	
	var osPlatform = document.getElementById("hiddenOsPlatFormId").value;
	if(osPlatform == null || osPlatform =='' || osPlatform =='select') {
		alert("You must first select an OS Platform before editing this field");
	} else {
		if(type =='softwareVersion-radio'){
			enableCategoryCondition('versionCondition');
			document.getElementById('saveBtnNew').style.display = 'block';
			
		}else{
			fnDisplayMainDiv('versionCategoryDiv','versionCategoryMainDivId','versionCategoryClearDiv');	
			tb_show('Software Tree', 'softwareTree?&method=post&osPlatform='+osPlatform+'&KeepThis=true&TB_iframe=true&height=400&width=500', null);
		}
	}
}