isseu 44 : from the syndication module

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8489 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-06-15 10:00:41 +00:00
parent 4d6ad132ef
commit 2810dffb8c

View file

@ -1,5 +1,5 @@
function insertSelectedModules(id, module_srl, mid, browser_title) {
var sel_obj = xGetElementById('_'+id);
var sel_obj = get_by_id('_'+id);
for(var i=0;i<sel_obj.options.length;i++) if(sel_obj.options[i].value==module_srl) return;
var opt = new Option(browser_title+' ('+mid+')', module_srl, false, false);
sel_obj.options[sel_obj.options.length] = opt;
@ -9,7 +9,7 @@ function insertSelectedModules(id, module_srl, mid, browser_title) {
}
function removeExceptModule(id) {
var sel_obj = xGetElementById('_'+id);
var sel_obj = get_by_id('_'+id);
sel_obj.remove(sel_obj.selectedIndex);
if(sel_obj.options.length) sel_obj.selectedIndex = sel_obj.options.length-1;
doSyncExceptModules(id);
@ -17,11 +17,11 @@ function removeExceptModule(id) {
function doSyncExceptModules(id) {
var selected_module_srls = new Array();
var sel_obj = xGetElementById('_'+id);
var sel_obj = get_by_id('_'+id);
for(var i=0;i<sel_obj.options.length;i++) {
selected_module_srls.push(sel_obj.options[i].value);
}
xGetElementById(id).value = selected_module_srls.join(',');
get_by_id(id).value = selected_module_srls.join(',');
}