Fixed save as a project not showing overwrite confirmation, no background color

This commit is contained in:
Mahdi Dibaiee
2014-02-21 18:03:33 +03:30
parent 353aa1e410
commit 83a2b4d394
9 changed files with 30 additions and 14 deletions

View File

@ -28,7 +28,13 @@ $(document).ready(function() {
$(this).attr('aria-selected', 'true');
})
$('#pro').on('click tap', function() {
$('#save ol:nth-of-type(2)').addClass('hidden');
$('#save ol:nth-of-type(2) li').each(function() {
if( $(this).find('span').html() !== 'Current Color' ) {
$(this).addClass('hidden');
$(this).removeAttr('aria-selected');
}
else $(this).attr('aria-selected', 'true');
})
})
$('#exp').on('click tap', function() {
$('#save ol:nth-of-type(2)').removeClass('hidden');
@ -36,7 +42,7 @@ $(document).ready(function() {
})
$('#pro').on('click tap', function() {
$('#save ol:nth-of-type(2) li').each(function() {
if( $(this).find('span').html() !== 'Transparent' ) {
if( $(this).find('span').html() !== 'Current Color' ) {
$(this).addClass('hidden');
$(this).removeAttr('aria-selected');
}