Преглед на файлове

Rename upload-pin to create-image

It didn't make sense to call it upload-pin as it is being used only for
creating the Image object.
tags/v1.0.0
Krzysztof Klimonda преди 11 години
родител
ревизия
68e01b5a39
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +1
    -1
      pinry/pins/urls.py
  2. +1
    -1
      pinry/static/js/pin-form.js

+ 1
- 1
pinry/pins/urls.py Целия файл

@@ -7,7 +7,7 @@ from .views import CreateImage
urlpatterns = patterns('pinry.pins.views',
url(r'^pin-form/$', TemplateView.as_view(template_name='core/pin_form.html'),
name='pin-form'),
url(r'^upload-pin/$', CreateImage.as_view(), name='upload-pin'),
url(r'^create-image/$', CreateImage.as_view(), name='create-image'),
url(r'^tag/(?P<tag>(\w|-)+)/$', TemplateView.as_view(template_name='core/pins.html'),
name='tag-pins'),
url(r'^$', TemplateView.as_view(template_name='core/pins.html'),


+ 1
- 1
pinry/static/js/pin-form.js Целия файл

@@ -65,7 +65,7 @@ $(window).load(function() {
// Drag and Drop Upload
$('#pin-form-image-upload').fineUploader({
request: {
endpoint: '/pins/upload-pin/',
endpoint: '/pins/create-image/',
paramsInBody: true,
multiple: false,
validation: {


Зареждане…
Отказ
Запис