From 77a9bac69152a5a1360f1753dbcd8fa510effb38 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 17 Jan 2012 01:49:45 -0500 Subject: [PATCH] Fix window dragging on Windows, because for some reason the jsm doesn't work properly --- .../content/zotero/integration/quickFormat.js | 2 + .../zotero/integration/quickFormat.xul | 7 +- .../zotero/integration/windowDraggingUtils.js | 118 ++++++++++++++++++ 3 files changed, 124 insertions(+), 3 deletions(-) create mode 100644 chrome/content/zotero/integration/windowDraggingUtils.js diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index ca3725154..1491ac0bb 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -49,6 +49,8 @@ var Zotero_QuickFormat = new function () { document.documentElement.setAttribute("hidechrome", true); } + new WindowDraggingElement(document.getElementById("quick-format-dialog"), window); + qfs = document.getElementById("quick-format-search"); qfi = document.getElementById("quick-format-iframe"); qfb = document.getElementById("quick-format-entry"); diff --git a/chrome/content/zotero/integration/quickFormat.xul b/chrome/content/zotero/integration/quickFormat.xul index fb5df04ec..b82478f9d 100644 --- a/chrome/content/zotero/integration/quickFormat.xul +++ b/chrome/content/zotero/integration/quickFormat.xul @@ -40,9 +40,10 @@ onkeypress="Zotero_QuickFormat.onKeyPress(event)">