diff --git a/snipt/media/js/src/modules/snipt.js b/snipt/media/js/src/modules/snipt.js index a6a48e8..cf63cf1 100644 --- a/snipt/media/js/src/modules/snipt.js +++ b/snipt/media/js/src/modules/snipt.js @@ -11,39 +11,21 @@ this.$el = $(this.el); this.$aside = $('aside', this.$el); this.$container = $('div.container', this.$el); - this.$copy_button = $('a.copy', this.$aside); - this.$copy_do = $('span.do', this.$copy_button); - this.$copy_done = $('span.done', this.$copy_button); - this.$expand_button = $('a.expand', this.$aside); this.$raw = $('div.raw', this.$container); this.$tags = $('section.tags ul', this.$aside); - - this.setupCopy(); }, events: { - 'click a.expand': 'expand' + 'click a.expand': 'expand', + 'click a.copy': 'copy' }, expand: function() { this.$container.toggleClass('expanded', 100); this.$tags.toggleClass('expanded'); return false; }, - setupCopy: function() { - - var copy_do = this.$copy_do; - var copy_done = this.$copy_done; - - //this.$copy_button.zclip({ - //afterCopy: function() { - //copy_do.hide(); - //copy_done.fadeIn(500); - //setTimeout(function() { - //copy_done.hide(); - //copy_do.fadeIn(500); - //}, 1500); - //}, - //copy: this.$raw.text() - //}); + copy: function() { + window.prompt('Text is selected. To copy: press Ctrl+C then ', this.$raw.text()); + return false; } });