* hide copy control before load to prevent shaking.
This commit is contained in:
@@ -63,15 +63,13 @@ function syncProductOrProject(obj, type)
|
||||
$('#copyModule').bind('click', function(){syncModule(obj.value, viewType)});
|
||||
}
|
||||
|
||||
function toggleCopy()
|
||||
function toggleCopy(toggle)
|
||||
{
|
||||
var $copy = $('.table-row.copy');
|
||||
if($copy.size() == 0) return false;
|
||||
$copy.toggle();
|
||||
$('.table-row.copy').toggle(toggle);
|
||||
}
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
toggleCopy();
|
||||
toggleCopy(false);
|
||||
$('[data-id="edit"] a').modalTrigger({type: 'iframe', width: 500});
|
||||
});
|
||||
|
||||
@@ -104,7 +104,7 @@ li.tree-item-story > .tree-actions .tree-action[data-type=delete]{display:none;}
|
||||
<td>
|
||||
<div id='sonModule'>
|
||||
<?php if($viewType == 'story' and $allProduct):?>
|
||||
<div class='table-row row-module copy'>
|
||||
<div class='table-row row-module copy' style='display: none;'>
|
||||
<div class='table-col col-module'><?php echo html::select('allProduct', $allProduct, '', "class='form-control chosen' onchange=\"syncProductOrProject(this,'product')\"");?></div>
|
||||
<div class='table-col col-shorts'><?php echo html::select('productModule', $productModules, '', "class='form-control chosen'");?></div>
|
||||
<div class='table-col col-actions'>
|
||||
|
||||
Reference in New Issue
Block a user