mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 22:59:57 +09:00
Issue 2304 : Now, multiple selection is possible and problem with single module selection in widget code generation page is fixed
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11132 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
47a05c9259
commit
19f6f31085
7 changed files with 134 additions and 973 deletions
|
|
@ -13,7 +13,7 @@ xe.MidManager = xe.createApp("MidManager", {
|
|||
return false;
|
||||
});
|
||||
|
||||
$keyObj.siblings('button.delete').bind('click', function(){
|
||||
$keyObj.parent().find('button.delete,a.delete').bind('click', function(){
|
||||
$keyObj.val('').next().val('');
|
||||
return false;
|
||||
});
|
||||
|
|
@ -24,6 +24,13 @@ xe.MidManager = xe.createApp("MidManager", {
|
|||
$finder.slideUp(100);
|
||||
return false;
|
||||
});
|
||||
|
||||
jQuery(function($){
|
||||
$('.moduleSearch').bind('moduleSelect', function(e, aSelected){
|
||||
self.cast('MID_SYNC_NEW', aSelected);
|
||||
});
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
API_MID_SYNC: function(){
|
||||
|
|
@ -43,6 +50,27 @@ xe.MidManager = xe.createApp("MidManager", {
|
|||
self.$keyObj.next().val(data.module_list[0].browser_title+' ('+data.module_list[0].mid+', '+data.module_list[0].module_name+')');
|
||||
}
|
||||
|
||||
$.exec_json('module.getModuleAdminModuleList', {'module_srls': module_srl}, on_complete);
|
||||
},
|
||||
|
||||
API_MID_SYNC_NEW: function(htBase, aParam){
|
||||
var self = this;
|
||||
|
||||
htSelected = aParam[0];
|
||||
|
||||
var module_srl = htSelected.module_srl;
|
||||
if (!module_srl) return;
|
||||
|
||||
function on_complete(data){
|
||||
if (data.error){
|
||||
alert(data.message);
|
||||
return;
|
||||
}
|
||||
|
||||
self.$keyObj.val(data.module_list[0].module_srl);
|
||||
self.$keyObj.next().val(data.module_list[0].browser_title+' ('+data.module_list[0].mid+', '+data.module_list[0].module_name+')');
|
||||
}
|
||||
|
||||
$.exec_json('module.getModuleAdminModuleList', {'module_srls': module_srl}, on_complete);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue