Last change
on this file since 25794 was
12221,
checked in by grum, 13 years ago
|
feature:2151 - Compatibility with Piwigo 2.2
|
-
Property svn:executable set to
*
|
File size:
722 bytes
|
Line | |
---|
1 | /** |
---|
2 | * ----------------------------------------------------------------------------- |
---|
3 | * file: histoLoad.js |
---|
4 | * file version: 1.0.0 |
---|
5 | * date: |
---|
6 | */ |
---|
7 | function HistoLoad() |
---|
8 | { |
---|
9 | var get = function(id, token) |
---|
10 | { |
---|
11 | $.ajax( |
---|
12 | { |
---|
13 | type: "POST", |
---|
14 | url: "plugins/Histogram/hgram_ajax.php", |
---|
15 | async: true, |
---|
16 | data: { ajaxfct:"public.histo.build", id:id, token:token }, |
---|
17 | success: |
---|
18 | function(msg) |
---|
19 | { |
---|
20 | if(msg!='') |
---|
21 | { |
---|
22 | $('#iHistoTxt').remove(); |
---|
23 | $('#iHistoContent').append('<img id="#iHistoImg" src="local/plugins/Histogram/'+msg+'">'); |
---|
24 | } |
---|
25 | } |
---|
26 | } |
---|
27 | ); |
---|
28 | }; |
---|
29 | |
---|
30 | this.get = function (id, token) { get(id, token); } |
---|
31 | } |
---|
32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.