From ff482cae0f5a620704d845037d60ae13ab851410 Mon Sep 17 00:00:00 2001 From: Michal Rezler Date: Wed, 30 Mar 2011 23:08:13 +0200 Subject: fixed import for drag.js and started a rewrite of edit.js --- lib/scripts/edit.js | 115 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 66 insertions(+), 49 deletions(-) (limited to 'lib/scripts/edit.js') diff --git a/lib/scripts/edit.js b/lib/scripts/edit.js index 8516fd186..36861973a 100644 --- a/lib/scripts/edit.js +++ b/lib/scripts/edit.js @@ -11,37 +11,41 @@ * Style the buttons through the toolbutton class * * @author Andreas Gohr + * @author Michal Rezler */ function createToolButton(icon,label,key,id,classname){ - var btn = document.createElement('button'); - var ico = document.createElement('img'); + var $ = jQuery; + var btn = $('