* hide copy control before load to prevent shaking.

This commit is contained in:
Catouse
2021-03-02 10:13:01 +08:00
parent 2098ef0e2d
commit c4e59946f1
2 changed files with 4 additions and 6 deletions
+3 -5
View File
@@ -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});
});