mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 17:19:59 +09:00
Issue 2385: Admin UI Refactoring - Advanced - Widgets
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11685 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
41d3059d66
commit
5a450211ba
23 changed files with 446 additions and 663 deletions
|
|
@ -6,31 +6,20 @@ xe.MidManager = xe.createApp("MidManager", {
|
|||
init: function(key){
|
||||
var self = this;
|
||||
var $keyObj = this.$keyObj = $('.extra_vars input[name='+key+']');
|
||||
var $finder = $keyObj.siblings('.finder');
|
||||
|
||||
$keyObj.siblings('button.search').bind('click', function(){
|
||||
$finder.slideDown(100);
|
||||
return false;
|
||||
});
|
||||
|
||||
$keyObj.parent().find('button.delete,a.delete').bind('click', function(){
|
||||
$keyObj.val('').next().val('');
|
||||
return false;
|
||||
});
|
||||
|
||||
$finder.find('.moduleIdList').siblings('button').bind('click', function(){
|
||||
$keyObj.val($finder.find('.moduleIdList').val());
|
||||
self.cast('MID_SYNC');
|
||||
$finder.slideUp(100);
|
||||
return false;
|
||||
});
|
||||
|
||||
jQuery(function($){
|
||||
$('.moduleSearch').bind('moduleSelect', function(e, aSelected){
|
||||
$keyObj.siblings('.moduleTrigger').bind('moduleSelect', function(e, aSelected){
|
||||
self.cast('MID_SYNC_NEW', aSelected);
|
||||
});
|
||||
});
|
||||
|
||||
self.cast('MID_SYNC');
|
||||
|
||||
},
|
||||
|
||||
API_MID_SYNC: function(){
|
||||
|
|
@ -52,27 +41,18 @@ xe.MidManager = xe.createApp("MidManager", {
|
|||
|
||||
$.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);
|
||||
self.$keyObj.val(htSelected.module_srl);
|
||||
self.$keyObj.next().val(htSelected.browser_title+' ('+htSelected.mid+', '+htSelected.type+')');
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
})(jQuery);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue