[xoops-cvslog 3231] CVS update: xoops2jp/html/modules/base/templates

Back to archive index

Tom Hayakawa tom_g3x****@users*****
2006年 5月 29日 (月) 23:55:06 JST


Index: xoops2jp/html/modules/base/templates/legacy_image_list.html
diff -u xoops2jp/html/modules/base/templates/legacy_image_list.html:1.1.2.2 xoops2jp/html/modules/base/templates/legacy_image_list.html:1.1.2.3
--- xoops2jp/html/modules/base/templates/legacy_image_list.html:1.1.2.2	Thu May 25 23:41:28 2006
+++ xoops2jp/html/modules/base/templates/legacy_image_list.html	Mon May 29 23:55:06 2006
@@ -1,6 +1,24 @@
+<script type="text/javascript">
+<!--//
+function appendCode(addCode) {
+	var targetDom = window.opener.xoopsGetElementById('<{$target}>');
+	if (targetDom.createTextRange && targetDom.caretPos){
+  		var caretPos = targetDom.caretPos;
+		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? addCode + ' ' : addCode;  
+	} else if (targetDom.getSelection && targetDom.caretPos){
+		var caretPos = targetDom.caretPos;
+		caretPos.text = caretPos.text.charat(caretPos.text.length - 1) == ' ' ? addCode + ' ' : addCode;
+	} else {
+		targetDom.value = targetDom.value + addCode;
+  	}
+	window.close();
+	return;
+}
+//-->
+</script>
 
 <form action="./index.php?action=ImageList" method="GET">
-  <select name="imgcat_id" onchange="location='<{$smarty.const.XOOPS_MODULE_URL}>/base/index.php?action=ImageList&amp;imgcat_id='+this.options[this.selectedIndex].value">
+  <select name="imgcat_id" onchange="location='<{$smarty.const.XOOPS_MODULE_URL}>/base/index.php?action=ImageList&amp;target=<{$target}>&amp;imgcat_id='+this.options[this.selectedIndex].value">
     <option value="0">---</option>
     <{xoops_optionsArray from=$categoryArr value=imgcat_id label=imgcat_name default=$imgcatId}>
   </select>
@@ -50,5 +68,4 @@
 
 <div id="footer">
   <input value="<{$smarty.const._CLOSE}>" type="button" onclick="javascript:window.close();" />
-</div>
-
+</div>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
Back to archive index