Commits

Anonymous committed 6222582

一键复制支持图片描述

  • Participants
  • Parent commits a84fbbd

Comments (0)

Files changed (1)

File themes/admin/album_manage.html

 <table>
 	{% for img in imgs %}
     <tr>
-        <td class="t-select"><input type="checkbox" class="s" title="{{img.copyurl}}"></td>
+        <td class="t-select"><input type="checkbox" class="s" title="{{img.copyurl}}" key="{{img.key.name}}"></td>
         <td class="t-img"><img src="{{img.s}}" ></td>
 		<td class="t-des" id="i_{{img.key.name}}">{{img.description}}</td>
         <td class="t-size">{{img.size|filesizeformat}}</td>
                     success:function(msg){
 						obj = $("#"+id)
                         obj.html(des);
+						
                         obj.bind('click',function(){
 							t_des_click_hanlder(obj);
 						});
            var result = "";
            var copy_txt = $("#copy_txt").val();
            $(".s:checked").each(function(){
-               result = result + copy_txt.replace(/\{0\}/g,unescape($(this).attr("title"))) + "\n";
+		   	   key=$(this).attr("key");
+			   des = $("#i_"+key).html()
+               result = result + copy_txt.replace(/\{0\}/g,unescape($(this).attr("title"))).replace(/\{1\}/g,des) + "\n";
            });
            clip.setText(result);
         });