#18318336 : make it easy to add language code for text or textarea

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6800 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2009-09-21 08:27:54 +00:00
parent 0b150ca73f
commit 54eee1e535

View file

@ -962,3 +962,14 @@ function replaceOuterHTML(obj, html) {
function getOuterHTML(obj) {
return jQuery(obj).html().trim();
}
jQuery(function(){
jQuery(".lang_code").each(
function()
{
var objText = jQuery(this);
var targetName = objText.attr("name");
objText.after("<a href='"+request_uri.setQuery('module','module').setQuery('act','dispModuleAdminLangcode').setQuery('target',targetName)+"' class='buttonSet buttonSetting' onclick='popopen(this.href);return false;'><span>find_langcode</span></a>");
}
);
});