Changeset 19828


Ignore:
Timestamp:
Jan 5, 2013, 11:04:10 AM (8 years ago)
Author:
mistic100
Message:

minor optimization on photos_add_direct

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/photos_add_direct_prepare.inc.php

    r19703 r19828  
    109109$upload_mode = isset($conf['upload_mode']) ? $conf['upload_mode'] : 'multiple';
    110110
    111 if (isset($_GET['upload_mode']) and in_array($_GET['upload_mode'], $upload_modes))
     111if (isset($_GET['upload_mode']) and $upload_mode != $_GET['upload_mode'] and in_array($_GET['upload_mode'], $upload_modes))
    112112{
    113113  $upload_mode = $_GET['upload_mode'];
  • trunk/admin/themes/default/template/photos_add_direct.tpl

    r13451 r19828  
    7777    jQuery("#uploadWarningsSummary").hide();
    7878    jQuery("#uploadWarnings").show();
     79    return false;
    7980  });
    8081
     
    8283    jQuery(this).parent(".showFieldset").hide();
    8384    jQuery("#permissions").show();
     85    return false;
    8486  });
    8587
Note: See TracChangeset for help on using the changeset viewer.