How to use the uikit.uploadSelect function in uikit

To help you get started, we’ve selected a few uikit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github polonel / trudesk / src / client / components / Settings / UploadButtonWithX / index.jsx View on Github external
},
      allcomplete: function () {
        $uploadButton.text('Upload Logo')
        $uploadButton.attr('disabled', false)
        $uploadButton.removeClass('disable')
        helpers.UI.showSnackbar('Upload Complete. Reloading...', false)
        // remove page refresh once SettingsService merge
        // $('img.site-logo').attr('src', '/assets/topLogo.png?refresh=' + new Date().getTime());
        setTimeout(function () {
          window.location.reload()
        }, 1000)
        $buttonX.removeClass('hide')
      }
    }

    UIkit.uploadSelect($uploadSelect, uploadLogoSettings)
  }