From 9ce6d646ff718cd62f6434c9a4c94e450436612a Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Sun, 12 Oct 2014 12:27:45 +0300 Subject: Revert "Updated Estonian translation" This reverts commit a0b2d09125d7911656fe4cb286f20643c4432281. --- g/fa/docs/assets/js/index/index.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 g/fa/docs/assets/js/index/index.js (limited to 'g/fa/docs/assets/js/index/index.js') diff --git a/g/fa/docs/assets/js/index/index.js b/g/fa/docs/assets/js/index/index.js new file mode 100755 index 000000000..0858f0cf6 --- /dev/null +++ b/g/fa/docs/assets/js/index/index.js @@ -0,0 +1,25 @@ +$(function() { + var MainView = Backbone.View.extend({ + el: $("div.container"), + + modalTemplate: _.template($("#modal-template").html()), + + events:{ + "click ul.the-icons > li": "iconClicked" + }, + + iconClicked: function(event) { + event.preventDefault(); + + var $item = $(event.currentTarget); + var $modal = $(this.modalTemplate({"style": $item.attr("class")})); + + $modal.modal("show"); + $modal.on('hidden', function () { + $modal.remove(); + }) + } + }); + + var mainView = new MainView(); +}); -- cgit v1.2.1