Permalink
Browse files

oh, scopes

  • Loading branch information...
1 parent 1467858 commit 39be7e40e215384c2efd1822c2c5162a93fcf310 @natrim committed Jun 14, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 js/jquery.ui.gridito.js
View
@@ -63,14 +63,15 @@
e.preventDefault();
var win = $("<div></div>").appendTo("body");
- win.attr("id", $(this).attr("id") + "-window").attr("title", $(this).attr("data-gridito-window-title"));
+ var button = $(this);
+ win.attr("id", button.attr("id") + "-window").attr("title", button.attr("data-gridito-window-title"));
win.load(this.href, function () {
win.dialog({
- modal: !!(parseInt($(this).attr("data-gridito-window-modal")) === 1),
- width: isNaN(parseInt($(this).attr("data-gridito-window-width"))) ? "auto" : $(this).attr("data-gridito-window-width"),
- height: isNaN(parseInt($(this).attr("data-gridito-window-height"))) ? "auto" : $(this).attr("data-gridito-window-height"),
- draggable: !!(parseInt($(this).attr("data-gridito-window-draggable")) === 1),
- resizable: !!(parseInt($(this).attr("data-gridito-window-resizable")) === 1),
+ modal: !!(parseInt(button.attr("data-gridito-window-modal")) === 1),
+ width: isNaN(parseInt(button.attr("data-gridito-window-width"))) ? "auto" : button.attr("data-gridito-window-width"),
+ height: isNaN(parseInt(button.attr("data-gridito-window-height"))) ? "auto" : button.attr("data-gridito-window-height"),
+ draggable: !!(parseInt(button.attr("data-gridito-window-draggable")) === 1),
+ resizable: !!(parseInt(button.attr("data-gridito-window-resizable")) === 1),
close: function () {
win.remove();
}

0 comments on commit 39be7e4

Please sign in to comment.