* Fix a bug for export case in onlyTest flow.
This commit is contained in:
@@ -51,7 +51,7 @@ $(document).ready(function()
|
||||
$('#modulemenu > .nav').append($('#featurebar > .submenu').html());
|
||||
|
||||
toggleSearch();
|
||||
$('.export').modalTrigger({width:650, type:'iframe'});
|
||||
$('.export').modalTrigger({width:650, type:'iframe', afterShown: setCheckedCookie})
|
||||
|
||||
$('#modulemenu > .nav > li').removeClass('active');
|
||||
$('#modulemenu > .nav > li[data-id=' + browseType + ']').addClass('active');
|
||||
|
||||
+25
-19
@@ -609,7 +609,7 @@ function setImageSize(image, maxWidth)
|
||||
function setModalTriggerLink()
|
||||
{
|
||||
$('.repolink').modalTrigger({width:960, type:'iframe'});
|
||||
$(".export").modalTrigger({width:650, type:'iframe'});
|
||||
$('.export').modalTrigger({width:650, type:'iframe', afterShown: setCheckedCookie})
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1355,6 +1355,30 @@ function setModal4List(triggerClass, replaceID, callback, width)
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Set checked in cookie.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function setCheckedCookie()
|
||||
{
|
||||
var checkeds = '';
|
||||
$(':checkbox').each(function()
|
||||
{
|
||||
if($(this).attr('checked'))
|
||||
{
|
||||
if(!isNaN($(this).val()))
|
||||
{
|
||||
var checkedVal = parseInt($(this).val());
|
||||
if(checkedVal != 0) checkeds = checkeds + checkedVal + ',';
|
||||
}
|
||||
}
|
||||
})
|
||||
if(checkeds != '') checkeds = checkeds.substring(0, checkeds.length - 1);
|
||||
$.cookie('checkedItem', checkeds, {expires:config.cookieLife, path:config.webRoot});
|
||||
}
|
||||
|
||||
/**
|
||||
* Set table behavior
|
||||
*
|
||||
@@ -2056,24 +2080,6 @@ $(document).ready(function()
|
||||
|
||||
if(needPing) setTimeout('setPing()', 1000 * 60 * 10); // After 10 minutes, begin ping.
|
||||
|
||||
$('.export').bind('click', function()
|
||||
{
|
||||
var checkeds = '';
|
||||
$(':checkbox').each(function()
|
||||
{
|
||||
if($(this).attr('checked'))
|
||||
{
|
||||
if(!isNaN($(this).val()))
|
||||
{
|
||||
var checkedVal = parseInt($(this).val());
|
||||
if(checkedVal != 0) checkeds = checkeds + checkedVal + ',';
|
||||
}
|
||||
}
|
||||
})
|
||||
if(checkeds != '') checkeds = checkeds.substring(0, checkeds.length - 1);
|
||||
$.cookie('checkedItem', checkeds, {expires:config.cookieLife, path:config.webRoot});
|
||||
});
|
||||
|
||||
initPrioritySelector();
|
||||
initHotKey();
|
||||
initHelpLink();
|
||||
|
||||
Reference in New Issue
Block a user