~yacinechaouche/+junk/BZR

« back to all changes in this revision

Viewing changes to CODE/GITHUB/FeedEk/.git/COMMIT_EDITMSG

  • Committer: yacinechaouche at yahoo
  • Date: 2015-01-14 22:23:03 UTC
  • Revision ID: yacinechaouche@yahoo.com-20150114222303-6gbtqqxii717vyka
Ajout de CODE et PROD. Il faudra ensuite ajouter ce qu'il y avait dan TMP

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Small change to allow caller to pass on a callback function and its arguments that would be called whenever retreival of feed is done:
 
2
 
 
3
From caller's perspective :
 
4
 
 
5
    function callback(args){
 
6
       [...]
 
7
    }
 
8
 
 
9
    $("#myid").FeedEk({
 
10
    FeedUrl       : url      ,
 
11
    MaxCount      : 20       ,
 
12
    ShowDesc      : false    ,
 
13
    ShowPubDate   : false    ,
 
14
    [...]
 
15
    Callback      : callback ,
 
16
    Callback_args : {...}    ,
 
17
    });
 
18
 
 
19
Changes made to Feedk.js' success property :
 
20
 
 
21
            success: function (data) {
 
22
            ...
 
23
                if (def.Callback) {
 
24
                    def.Callback(def.Callback_args);
 
25
                }
 
26
            }
 
27
        });
 
28
    };
 
29
    })(jQuery);
 
30
 
 
31
 
 
32
 
 
33
 
 
34
 
 
35
# Please enter the commit message for your changes. Lines starting
 
36
# with '#' will be ignored, and an empty message aborts the commit.
 
37
# On branch master
 
38
# Changes to be committed:
 
39
#   (use "git reset HEAD <file>..." to unstage)
 
40
#
 
41
#       modified:   js/FeedEk.js
 
42
#