cross platform but REALLY MESSY, do not use this as reference its just to show it existing

This commit is contained in:
John McLear 2014-03-04 00:40:47 +00:00
parent aa81c4d5cb
commit 4f808defe1
4 changed files with 40 additions and 0 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

@ -5248,6 +5248,17 @@ function Ace2Inner(){
if (browser.mozilla) $(root).addClass("mozilla");
if (browser.safari) $(root).addClass("safari");
if (browser.msie) $(root).addClass("msie");
// Temporary bodge in listen for events on images -- CAKE
$.getScript("../static/js/jquery_ui.js");
$(root).on('click', 'img', function(e){
top.console.log(e);
top.console.log("FUCKKK");
$(e.target).resizable({ proxy: 'proxy', aspectRatio: 'preserve' });
$(e.target).addClass("resizing");
// $(e.target).remove();
});
if (browser.msie)
{
// cache CSS background images
@ -5294,6 +5305,13 @@ function Ace2Inner(){
});
}
/*
top.console.log("listening for click events");
$('#innerdocbody').on('hover', 'div', function(){
top.console.log("FUCKKK");
});
*/
}
exports.init = function () {

6
src/static/js/jquery_ui.js vendored Normal file

File diff suppressed because one or more lines are too long