diff options
| author | fisharebest <fisharebest@gmail.com> | 2012-04-20 12:13:34 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2012-04-20 12:13:34 +0000 |
| commit | 863ed5fef16727ac1e7b0c3cad81e0bbe2fbe471 (patch) | |
| tree | bfd8a5b9a5f15f772366c2eb23d69b197b9bcccd /js/webtrees.js | |
| parent | 203ee97be15a7005853b5cd5d483d31a56f22b41 (diff) | |
| download | webtrees-863ed5fef16727ac1e7b0c3cad81e0bbe2fbe471.tar.gz webtrees-863ed5fef16727ac1e7b0c3cad81e0bbe2fbe471.tar.bz2 webtrees-863ed5fef16727ac1e7b0c3cad81e0bbe2fbe471.zip | |
Move duplicated JS functions to webtrees.js.
Add JS via the controller, so it can be defered until the end of the page.
Diffstat (limited to 'js/webtrees.js')
| -rw-r--r-- | js/webtrees.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/js/webtrees.js b/js/webtrees.js index 6a88b89dca..5f272ed4fe 100644 --- a/js/webtrees.js +++ b/js/webtrees.js @@ -32,6 +32,7 @@ var help_window_specs='width=500,height=400,left=250,top=200,resizable=1,scrollb var find_window_specs='width=500,height=500,left=250,top=150,resizable=1,scrollbars=1'; // find.php, inverse_link.php var mesg_window_specs='width=500,height=600,left=250,top=100,resizable=1,scrollbars=1'; // message.php var chan_window_specs='width=500,height=600,left=250,top=100,resizable=1,scrollbars=1'; // edit_changes.php +var mord_window_specs='width=500,height=600,left=250,top=100,resizable=1,scrollbars=1'; // edit_interface.php, media reorder var assist_window_specs='width=900,height=800,left=70,top=70,resizable=1,scrollbars=1'; // edit_interface.php, used for census assistant // TODO: This function loads help_text.php twice. It should only load it once. @@ -341,8 +342,13 @@ function addClipboardRecord(pid, fact) { return false; } +function reorder_media(xref) { + window.open('edit_interface.php?action=reorder_media&pid='+xref, '_blank', mord_window_specs); + return false; +} + function add_new_record(pid, fact) { - window.open('edit_interface.php?action=add&pid='+pid+'&fact='+fact+'&'+'&accesstime='+accesstime, '_blank', edit_window_specs); + window.open('edit_interface.php?action=add&pid='+pid+'&fact='+fact+'&'+'&accesstime='+accesstime, '_blank', edit_window_specs); return false; } @@ -411,11 +417,6 @@ function reorder_families(pid) { return false; } -function chat(username) { - alert('This feature is not implement yet'); - return false; -} - function reply(username, subject) { window.open('message.php?to='+username+'&subject='+subject, '_blank', mesg_window_specs); return false; |
