PageRenderTime 23ms CodeModel.GetById 13ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/upload/misc/tpl/posting_tpl_el_id.html

http://torrentpier2.googlecode.com/
HTML | 24 lines | 20 code | 2 blank | 2 comment | 0 complexity | 7fbd4d6bef1d42b166e057e6a09515f9 MD5 | raw file
 1
 2<div id="tpl-abr-box"></div>
 3<script type="text/javascript">
 4$(document).ready(function(){
 5	$.each(TPL.el_id, function(el,desc){
 6		var m = el.match(/^(.*)(_abr)$/);
 7		if (m == null) {
 8			return true; // continue
 9		}
10		var el_abr = m[0];
11		var el_ref = m[1];
12		$('#tpl-abr-box').append('<div id="'+el_abr+'-hid">'+ TPL.build_select_el(el_abr) +'</div>');
13		TPL.submit_fn[el_abr] = function(){
14			if ( $('#'+el_ref).length ) {
15				$('#'+el_abr)[0].selectedIndex = $('#'+el_ref)[0].selectedIndex;
16			}
17		}
18	});
19});
20</script>
21
22<!--load_pic_btn-->
23<div id="load_pic_btn"><input type="button" style="width: 140px;" value="????????? ????????" onclick="window.open('http://ipicture.ru', '_blank'); return false;" /></div>
24<!--/load_pic_btn-->