mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
layout module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8920 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d48bcf6a6a
commit
2601043ee8
18 changed files with 767 additions and 510 deletions
24
modules/layout/tpl/js/adminEdit.js
Normal file
24
modules/layout/tpl/js/adminEdit.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
jQuery(document).ready(function($){
|
||||
$('.uploaded_image').css('cursor', 'pointer');
|
||||
$('.uploaded_image_path').hide();
|
||||
$('.uploaded_image').bind('click', function(e){
|
||||
var path = $(this).siblings('.uploaded_image_path').html();
|
||||
var html = '<div class="selected_image_path">' + path + '</div>';
|
||||
|
||||
$('.selected_image_path').remove();
|
||||
$('.uploaded_image_list').after(html);
|
||||
});
|
||||
});
|
||||
|
||||
function doPreviewLayoutCode()
|
||||
{
|
||||
var $form = jQuery('#fo_layout'), $act = $form.find('input[name=act]');
|
||||
var og_act = $act.val();
|
||||
|
||||
$form.attr('target', '_LayoutPreview');
|
||||
$act.val('dispLayoutPreview');
|
||||
$form.submit();
|
||||
|
||||
$form.removeAttr('target');
|
||||
$act.val(og_act);
|
||||
}
|
||||
8
modules/layout/tpl/js/adminList.js
Normal file
8
modules/layout/tpl/js/adminList.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
var ConfirmCheck = xe.createPlugin('confirm_check', {
|
||||
API_BEFORE_VALIDATE: function(sender, params){
|
||||
return confirm(xe.lang.confirm_delete);
|
||||
}
|
||||
});
|
||||
|
||||
var Validator = xe.getApp('Validator')[0];
|
||||
Validator.registerPlugin(new ConfirmCheck());
|
||||
Loading…
Add table
Add a link
Reference in a new issue