Reply popup works now
...WHY does javascript let me define the same value twice in the same definition without warning about it? I hate Javascript. :(
This commit is contained in:
parent
196df7d8a4
commit
4e682f3d88
22
js/util.js
22
js/util.js
|
@ -591,14 +591,22 @@ var SN = { // StatusNet
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var noticeEl = $(this).closest('.notice');
|
var noticeEl = $(this).closest('.notice');
|
||||||
$.get($(this).attr('href'), {ajax: 1}, function (data, textStatus, xhr) {
|
$.get($(this).attr('href'), {ajax: 1}, function (data, textStatus, xhr) {
|
||||||
SN.U.NoticeOptionPopup($('body', data).html());
|
SN.U.NoticeOptionPopup(data);
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
NoticeOptionPopup: function (html) {
|
NoticeOptionPopup: function (data) {
|
||||||
dialog = $(html).dialog();
|
title = $('head > title', data).text();
|
||||||
|
body = $('body', data).html();
|
||||||
|
dialog = $(body).dialog({
|
||||||
|
height: "auto",
|
||||||
|
width: "auto",
|
||||||
|
modal: true,
|
||||||
|
resizable: true,
|
||||||
|
title: title,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -799,14 +807,6 @@ var SN = { // StatusNet
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
NoticeOptionPopup: function (html) {
|
|
||||||
dialog = $(html).dialog({
|
|
||||||
resizable: false,
|
|
||||||
height: 150,
|
|
||||||
modal: true,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup function -- DOES NOT trigger actions immediately.
|
* Setup function -- DOES NOT trigger actions immediately.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user