mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 14:19:58 +09:00
issue 207, added common libs
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9720 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
40782981e8
commit
9dcbf6a9c6
9 changed files with 345 additions and 14 deletions
37
modules/module/tpl/js/manage_selected_module.js
Normal file
37
modules/module/tpl/js/manage_selected_module.js
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
// manage selected module
|
||||
jQuery(function($){
|
||||
|
||||
$('#manageSelectedModule .cnb a.tgAnchor')
|
||||
.bind('before-open.tc', function(){
|
||||
var self = this;
|
||||
$('#manageSelectedModule a.tgAnchor')
|
||||
.filter(function(){
|
||||
if (this == self) return false;
|
||||
return true;
|
||||
})
|
||||
.trigger('close.tc');
|
||||
});
|
||||
|
||||
$('a.modalAnchor[href=#manageSelectedModule]')
|
||||
.bind('before-open.mw', function(){
|
||||
var $selectedModule = $('input[type=checkbox].selectedModule:checked');
|
||||
var $selectedBody = $('#manageSelectedModuleBody');
|
||||
|
||||
if (!$selectedModule.length) return false;
|
||||
|
||||
$selectedBody.empty();
|
||||
|
||||
var module_srls = new Array();
|
||||
$selectedModule.each(function(){
|
||||
var $this = $(this);
|
||||
var row = '<tr><td>' + $this.data('mid') + '</td><td>' + $this.data('browser_title') + '</td></tr>';
|
||||
$selectedBody.append(row);
|
||||
module_srls.push($this.val());
|
||||
});
|
||||
|
||||
$('#manageSelectedModuleSetup input[name=module_srls]').val(module_srls);
|
||||
$('#manageSelectedModuleAddition input[name=target_module_srl]').val(module_srls);
|
||||
$('#manageSelectedModuleGrant input[name=module_srls]').val(module_srls);
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue