code improved

This commit is contained in:
khaydarov 2017-01-26 04:15:16 +03:00
parent cc49b8fa2c
commit 29fc727771

View file

@ -347,7 +347,7 @@ var quote = (function(quote) {
var parsed = JSON.parse(result), var parsed = JSON.parse(result),
filename = parsed.filename, filename = parsed.filename,
uploadImageWrapper = codex.content.currentNode.querySelector('.' + elementClasses_.withPhoto.photo), uploadImageWrapper = codex.content.currentNode.querySelector('.' + elementClasses_.withPhoto.photo),
authorsPhoto = quoteTools.ui.img(elementClasses_.authorsPhoto); authorsPhoto = ui_.img(elementClasses_.authorsPhoto);
authorsPhoto.src = parsed.data.file.url; authorsPhoto.src = parsed.data.file.url;
@ -387,13 +387,13 @@ var quote = (function(quote) {
switch (data.style) { switch (data.style) {
case 'simple': case 'simple':
tag = quoteTools.makeSimpleQuote(data); tag = methods_.makeSimpleQuote(data);
break; break;
case 'withCaption': case 'withCaption':
tag = quoteTools.makeQuoteWithCaption(data); tag = methods_.makeQuoteWithCaption(data);
break; break;
case 'withPhoto': case 'withPhoto':
tag = quoteTools.makeQuoteWithPhoto(data); tag = methods_.makeQuoteWithPhoto(data);
break; break;
} }