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
| {% load cms_tags sekizai_tags compressed static %} | |
| {% if not request.is_ajax %}{% include "base_head.html" %}{% endif %} | |
| <div class="main"> | |
| {% block base_content %}{% endblock %} | |
| </div> | |
| {% if not request.is_ajax %}{% include "base_foot.html" %}{% endif %} |
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
| (function ($) { | |
| $.fn.autoFitInput = function (o) { | |
| function getTestSubject(input, text) { | |
| var testSubject = $('#input-tester'); | |
| if (testSubject.length === 0){ | |
| testSubject = $('<pre id="input-tester" />').appendTo('body').css({ | |
| position: 'absolute', | |
| top: -9999, | |
| left: -9999, |
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
| function scaleImage($img, w, h, targetWidth, targetHeigth) { | |
| var ratio = targetWidth / w; | |
| var height = h * ratio; | |
| var width = w * ratio; | |
| if (targetHeigth && height > targetHeigth) { | |
| ratio = targetHeigth / h; | |
| height = targetHeigth; |
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 AnimatedRegion = Backbone.Marionette.Region.extend({ | |
| show: function(view) { | |
| this.ensureEl(); | |
| view.render(); | |
| this.close(); | |
| if (this.currentView && this.currentView !== view) { | |
| return; | |
| } |
NewerOlder