client/js/ui.handler.click.filename.js
function examineEvent(target, event) {
        if (spec.templating.isFileName(target) || spec.templating.isEditIcon(target)) {
            var fileId = spec.templating.getFileId(target),
                status = spec.onGetUploadStatus(fileId);

            // We only allow users to change filenames of files that have been submitted but not yet uploaded.
            if (status === qq.status.SUBMITTED) {
                spec.log(qq.format("Detected valid filename click event on file '{}', ID: {}.", spec.onGetName(fileId), fileId));
                qq.preventDefault(event);

                inheritedInternalApi.handleFilenameEdit(fileId, target, true);
            }
        }
    }
function examineEvent(target, event) {
        if (spec.templating.isFileName(target) || spec.templating.isEditIcon(target)) {
            var fileId = spec.templating.getFileId(target),
                status = spec.onGetUploadStatus(fileId);

            // We only allow users to change filenames of files that have been submitted but not yet uploaded.
            if (status === qq.status.SUBMITTED) {
                spec.log(qq.format("Detected valid filename click event on file '{}', ID: {}.", spec.onGetName(fileId), fileId));
                qq.preventDefault(event);

                inheritedInternalApi.handleFilenameEdit(fileId, target, true);
            }
        }
    }
function examineEvent ( target , event ) { if ( spec . templating . isFileName ( target ) || spec . templating . isEditIcon ( target ) ) { var fileId = spec . templating . getFileId ( target ) , status = spec . onGetUploadStatus ( fileId ) ; // We only allow users to change filenames of files that have been submitted but not yet uploaded. if ( status === qq . status . SUBMITTED ) { spec . log ( qq . format ( "Detected valid filename click event on file '{}', ID: {}." , spec . onGetName ( fileId ) , fileId ) ) ; qq . preventDefault ( event ) ; inheritedInternalApi . handleFilenameEdit ( fileId , target , true ) ; } } }
This will be called by the parent handler when a `click` event is received on the list element.
This will be called by the parent handler when a click event is received on the list element .