1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-16 14:50:48 +03:00

Мелкие фиксы js

This commit is contained in:
Mzhelskiy Maxim 2015-03-27 17:28:51 +07:00
parent 9f0ef65eef
commit e9fbb2db33
13 changed files with 18 additions and 18 deletions

View file

@ -19,7 +19,7 @@
// Селекторы
selectors: {
type: '.js-blog-add-type',
type_note: '.js-blog-add-field-type .js-field-note',
type_note: '.js-blog-add-field-type .js-field-note'
}
},

View file

@ -25,7 +25,7 @@
vote: aRouter.ajax + 'vote/comment/',
favourite: aRouter.ajax + 'favourite/comment/',
// Показать/скрыть комментарий
toggle: aRouter.ajax + 'comment/delete/',
toggle: aRouter.ajax + 'comment/delete/'
},
// Селекторы

View file

@ -20,7 +20,7 @@
// Ссылки
urls: {
// Добавить/удалить из избранного
toggle: null,
toggle: null
},
// Селекторы
@ -36,11 +36,11 @@
// Добавлено в избранное
added: 'favourite--added',
// Кол-во добавивших в избранное больше нуля
has_counter: 'favourite--has-counter',
has_counter: 'favourite--has-counter'
},
// Параметры отправляемые при каждом аякс запросе
params: {},
params: {}
// Коллбэки

View file

@ -24,7 +24,7 @@
crop_avatar: null,
save_photo: null,
save_avatar: null,
cancel_photo: null,
cancel_photo: null
},
use_avatar: true,
crop_photo: {

View file

@ -60,7 +60,7 @@
item_text: '.js-poll-form-answer-item-text',
item_remove: '.js-poll-form-answer-item-remove',
submit: '.js-poll-form-submit'
},
}
},
// Максимальное кол-во вариантов которое можно добавить в опрос
max: 20

View file

@ -21,7 +21,7 @@
// Ссылки
urls: {
modal: null,
add: null,
add: null
},
// Селекторы

View file

@ -41,7 +41,7 @@
item: '.js-topic',
// Пагинация
pagination: '.js-pagination-topics',
pagination: '.js-pagination-topics'
},
// Продолжительность прокрутки, мс

View file

@ -58,7 +58,7 @@
preview: this.element.find( this.option( 'selectors.buttons.preview' ) ),
preview_hide: $( this.option( 'selectors.buttons.preview_hide' ) ),
draft: this.element.find( this.option( 'selectors.buttons.draft' ) ),
submit: this.element.find( this.option( 'selectors.buttons.submit' ) ),
submit: this.element.find( this.option( 'selectors.buttons.submit' ) )
}
};

View file

@ -29,7 +29,7 @@
// Кнопки голосования
item: '.js-vote-item',
// Рейтинг
rating: '.js-vote-rating',
rating: '.js-vote-rating'
},
// Классы
@ -53,7 +53,7 @@
count_zero: 'vote--count-zero',
// Рейтинг скрыт
rating_hidden: 'vote--rating-hidden',
rating_hidden: 'vote--rating-hidden'
},
// Параметры отправляемые при каждом аякс запросе
params: {},

View file

@ -27,7 +27,7 @@
selectors: {
wrapper: '.js-wall-entry-container',
remove: '.js-comment-remove',
reply: '.js-comment-reply',
reply: '.js-comment-reply'
},
params: {}
@ -107,6 +107,6 @@
this.option( 'wall' ).lsWall( 'getCommentWrapperById', this.id ).fadeOut( 'slow', function () {
$( this ).remove();
});
},
}
});
})(jQuery);

View file

@ -88,7 +88,7 @@
selectors: {
wrapper: _this.option( 'selectors.comment_wrapper' ),
remove: _this.option( 'selectors.entry.remove' ),
reply: _this.option( 'selectors.entry.reply' ),
reply: _this.option( 'selectors.entry.reply' )
}
})
});

View file

@ -339,7 +339,7 @@ jQuery(document).ready(function($){
$('.js-user-report').lsReport({
urls: {
modal: aRouter.profile + 'ajax-modal-complaint',
add: aRouter.profile + 'ajax-complaint-add',
add: aRouter.profile + 'ajax-complaint-add'
}
});
@ -497,7 +497,7 @@ jQuery(document).ready(function($){
},
use_avatar: false,
crop_photo: {
minSize: [ 500, 500 ],
minSize: [ 100, 100 ],
aspectRatio: 1,
usePreview: true
}

@ -1 +1 @@
Subproject commit 661a71ba2295fe2f0e70aef5e7eb6d8bae0a249e
Subproject commit 3c5d2b051b5380d58ff83c1b392cd8f22f1e84c0