mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 05:39:58 +09:00
merge from 1.5.3.2 (~r11225)
git-svn-id: http://xe-core.googlecode.com/svn/trunk@11226 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
54e3a72065
commit
77f5aa2671
313 changed files with 8058 additions and 14251 deletions
|
|
@ -13,7 +13,7 @@ xe.ModuleListManager = xe.createApp("ModuleListManager", {
|
|||
this.$moduleSrlObj = $keyObj.parent().find('.moduleIdList');
|
||||
this.$selectedObj = $keyObj.parent().find('.modulelist_selected');
|
||||
|
||||
this.$moduleSrlObj
|
||||
this.$selectedObj
|
||||
.nextAll('button')
|
||||
.filter('.modulelist_add').bind('click', function(){ self.cast('MODULELIST_ADD'); return false; }).hide().end()
|
||||
.filter('.modulelist_del').bind('click', function(){ self.cast('MODULELIST_DEL'); return false; }).end()
|
||||
|
|
@ -27,18 +27,25 @@ xe.ModuleListManager = xe.createApp("ModuleListManager", {
|
|||
this.cast('MODULELIST_SYNC');
|
||||
},
|
||||
|
||||
API_MODULELIST_ADD: function(){
|
||||
var moduleTitle = this.$moduleNameObj.find('>option:selected').text();
|
||||
|
||||
this.$moduleSrlObj
|
||||
.find('>option:selected').clone(true)
|
||||
.text(function(){ return $(this).text() + ' ('+moduleTitle+')'; })
|
||||
.appendTo(this.$selectedObj);
|
||||
addModule: function(sModuleType, sModuleInstanceName, sModuleSrl){
|
||||
$('<OPTION>').val(sModuleSrl).text(sModuleInstanceName + ' ('+sModuleType+')').appendTo(this.$selectedObj);
|
||||
|
||||
this.removeDuplicated();
|
||||
this.refreshValue();
|
||||
},
|
||||
|
||||
API_ADD_MODULE_TO_MODULELIST_MANAGER : function(sender, aParams){
|
||||
this.addModule(aParams[0], aParams[1], aParams[2]);
|
||||
},
|
||||
|
||||
API_MODULELIST_ADD: function(){
|
||||
var sModuleType = this.$moduleNameObj.find('>option:selected').text();
|
||||
var sModuleInstanceName = this.$moduleSrlObj.find('>option:selected').text();
|
||||
var sModuleSrl = this.$moduleSrlObj.find('>option:selected').val();
|
||||
|
||||
this.addModule(sModuleType, sModuleInstanceName, sModuleSrl);
|
||||
},
|
||||
|
||||
API_MODULELIST_DEL: function(){
|
||||
this.$selectedObj.find('>option:selected').remove();
|
||||
this.refreshValue();
|
||||
|
|
@ -93,4 +100,4 @@ xe.ModuleListManager = xe.createApp("ModuleListManager", {
|
|||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
})(jQuery);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue