This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### | |
| Роутинг приложения | |
| ### | |
| App.Router.map () -> | |
| @resource "index", path: "/practice", () -> | |
| @route "index" | |
| @resource "selection", path: "/selections/:selection_id", () -> | |
| @route "index" | |
| @resource "folder", path: "/folders/:folder_id", () -> | |
| @resource "folder_documents", path: "/documents", () -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| loadingPageDocuments: function(customCount) { | |
| var loader = $('<li class="b-load"><div class="b-borders"></div></li>'), | |
| count = customCount || this.perPage, | |
| container = $('#relations_page'); | |
| for (var i = 0; i < count; i++) { | |
| container.append(loader.clone()); | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| avatarCreateCash: function() { | |
| var items = $('.js-feed-item').find('.js-feed-item-icon-content'); | |
| this.iconAvatarCash = []; | |
| for (var i=0, len = items.length; i < len; i++) { | |
| this.iconAvatarCash.push(items.eq(i)); | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |