diff options
author | Thomas Backlund <tmb@mageia.org> | 2014-10-12 12:27:45 +0300 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2014-10-12 12:27:45 +0300 |
commit | 9ce6d646ff718cd62f6434c9a4c94e450436612a (patch) | |
tree | 3ee82e5db7c0aee44a5573d9d17035c6ecac697d /g/fa/docs/assets/js/index/index.js | |
parent | a0b2d09125d7911656fe4cb286f20643c4432281 (diff) | |
download | www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.gz www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.bz2 www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.xz www-9ce6d646ff718cd62f6434c9a4c94e450436612a.zip |
Revert "Updated Estonian translation"
This reverts commit a0b2d09125d7911656fe4cb286f20643c4432281.
Diffstat (limited to 'g/fa/docs/assets/js/index/index.js')
-rwxr-xr-x | g/fa/docs/assets/js/index/index.js | 25 |
1 files changed, 25 insertions, 0 deletions
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(); +}); |