issue 1312 fix. Adding the toggle button to hide and show details of 'installed program(e.g. modules, layouts, widgets...)' list.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10166 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-02-21 10:07:11 +00:00
parent 0a408c8e76
commit af5d1da6cb
9 changed files with 39 additions and 10 deletions

View file

@ -1190,3 +1190,13 @@ jQuery(function($){
$('.x>.body>.content').addClass('single'); // Add class single
}
});
/* Details toggle in admin table */
jQuery(function($){
var details = $('.x .dsTg>table>tbody>tr>td.title>p:not(:first-child)');
var viewBtn = $('.x .dsTg>table>caption>span.side>button.text');
details.hide();
viewBtn.click(function(){
details.slideToggle(200);
viewBtn.toggleClass('details');
});
});

View file

@ -35,4 +35,4 @@ return!1},mousedown:function(){h=!0},focus:function(){a(this).mouseover()},mouse
jQuery(function(a){a(".filebox").bind("before-open.mw",function(){function c(f){d.html(f.html);d.find(".lined .select").bind("click",function(){var c=a("input.select_checkbox:checked");0==c.length?(c=a(this).parent().find("img.filebox_item").attr("src"))?(b.trigger("filebox.selected",[c]),b.trigger("close.mw")):alert("None selected!"):(b.trigger("filebox.selected",[c]),b.trigger("close.mw"));return!1});d.find(".pagination").find("a").filter(function(){return a(this).hasClass("tgAnchor")?!1:!0}).bind("click",
function(){var b=a(this).attr("page");a.exec_json("module.getFileBoxListHtml",{page:b},c);a(window).scrollTop(a(g).find(".modalClose").offset().top);return!1});a("#FileBoxGoTo").find("button").bind("click",function(){var b=a(this).prev("input").val();a.exec_json("module.getFileBoxListHtml",{page:b},c);a(window).scrollTop(a(g).find(".modalClose").offset().top);return!1})}var b,d,g;b=a(this);g=b.attr("href");d=a(g).find(".filebox_list");a.exec_json("module.getFileBoxListHtml",{page:"1"},c)})});
function showWaitingFogLayer(){var a=jQuery('<span class="bg"></span>');a.height(jQuery(window).height());jQuery(".wfsr").wrap('<div class="wfsr_fog" />').before(a)}function hideWaitingFogLayer(){jQuery(".wfsr").prev("span").remove();jQuery(".wfsr").unwrap()}function doInstallModule(a){var c=[];c.module_name=a;exec_xml("install","procInstallAdminInstall",c,completeInstallModule);showWaitingFogLayer()}
function doUpdateModule(a){var c=[];c.module_name=a;exec_xml("install","procInstallAdminUpdate",c,completeInstallModule);showWaitingFogLayer()}function completeInstallModule(a){alert(a.message);location.reload()}jQuery(document).ready(function(a){a("body").ajaxComplete(function(){hideWaitingFogLayer()})});jQuery(function(a){0==a(".x>.body>.lnb").length&&a(".x>.body>.content").addClass("single")});
function doUpdateModule(a){var c=[];c.module_name=a;exec_xml("install","procInstallAdminUpdate",c,completeInstallModule);showWaitingFogLayer()}function completeInstallModule(a){alert(a.message);location.reload()}jQuery(document).ready(function(a){a("body").ajaxComplete(function(){hideWaitingFogLayer()})});jQuery(function(a){0==a(".x>.body>.lnb").length&&a(".x>.body>.content").addClass("single")});jQuery(function($){var details = $('.x .dsTg>table>tbody>tr>td.title>p:not(:first-child)');var viewBtn = $('.x .dsTg>table>caption>span.side>button.text');details.hide();viewBtn.click(function(){details.slideToggle(200);viewBtn.toggleClass('details');});});