| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
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
| $.when( | |
| $.ajax({ | |
| type: 'GET', | |
| data: { webname: data_review.webname }, | |
| url: get_url, | |
| dataType: 'json' | |
| }), | |
| $.ajax({ | |
| type: 'GET', | |
| data: data_review, |
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
| class Loyut extends Backbone.View | |
| initialize: => | |
| app.on( @name + ':open', (el) => | |
| if el.name is @name | |
| el.open() | |
| ) | |
| app.on( @name + ':close', (el) => | |
| if el.name is @name | |
| el.close() | |
| ) |
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
| class Faq extends Loyut | |
| name: 'faq' | |
| url: 'faq' | |
| el: $('.b-popup_faq') | |
| $ -> | |
| app.loyut.faq = new Faq | |
| app.router.set(app.loyut.faq) | |
| app.menu.top.set(app.loyut.faq) |
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
| suite "Elections.Router", -> | |
| setup -> | |
| @router = new Elections.Router( @window = sinon.stub() ) | |
| test "gotoUrl with url", -> | |
| url = "route2" | |
| @router.gotoUrl(url) | |
| assert.equal @window.location, url |
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
| class Elections.Model.Openid extends Elections.Model.Base | |
| url: "/auth/open_id" | |
| validation: | |
| openid_url: [{ | |
| required: true | |
| pattern: /^(https?:\/\/)?([\w\.]+)\.([a-z]{2,6}\.?)(\/[\w\.]*)*\/?$/ | |
| msg: "Введите OpenID" | |
| }] |
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
| # # Openid Model | |
| # Валидирует и отправляет форму на сервер | |
| class Elections.Model.Openid extends Elections.Model.Base | |
| url: "/auth/open_id" | |
| validation: | |
| openid_url: [{ |
OlderNewer