summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/app.js2
-rw-r--r--js/ui/controls.js8
2 files changed, 9 insertions, 1 deletions
diff --git a/js/app.js b/js/app.js
index 5898f5c..64f8bea 100644
--- a/js/app.js
+++ b/js/app.js
@@ -82,7 +82,7 @@ function bind () {
})
window.onbeforeunload = function() {
- if (changed && !in_iframe()) return "You have edited this drawing."
+ // if (changed && !in_iframe()) return "You have edited this drawing."
}
function in_iframe () {
diff --git a/js/ui/controls.js b/js/ui/controls.js
index 8da4994..32a329a 100644
--- a/js/ui/controls.js
+++ b/js/ui/controls.js
@@ -164,6 +164,14 @@ var controls = (function(){
clipboard.show()
clipboard.export_mode()
}
+ controls.send_to_irc = new ClipboardTool (send_to_irc_el)
+ controls.send_to_irc.use = function(){
+ changed && clipboard.upload_png()
+ clipboard.show()
+ clipboard.export_mode()
+ alert('your ascii art is now on display on the IRC channel inside the panke.gallery!')
+ }
+
controls.load = new ClipboardTool (load_el)
controls.load.use = function(){
// console.log("use")