kuy / Wedata Manager

This greasemonkey script works on Wedata and provide various enhancement for editing database items from website.

Clone this repository (size: 24.1 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/kuy/wedata-manager/

Changed (Δ37 bytes):

raw changeset »

wedata_manager.user.js (3 lines added, 3 lines removed)

Up to file-list wedata_manager.user.js:

20
20
// Todo {{{
21
21
//   [All] Test in case of logged out
22
22
//   [Item] Enables Ajax-ed editing
23
//   [ItemList] Adds operation link per items (Edit, Delete, Duplicate)
24
23
//   [ItemList] Enables in-place editing (like Flickr)
25
24
//   [ItemList] Shows a graph image in right side
26
25
//   [ItemList] Supports AutoPagerize
26
//   [ItemList] Enables Ajax-ed operation (w/o reload)
27
27
//   [NewItem] Add more forms for creating multiple items at once
28
28
// }}}
29
29
@@ -333,12 +333,12 @@ ItemList.prototype.init = function(){
333
333
        var scope = this;
334
334
        unsafeWindow.wdmgr_delete = function(id){
335
335
            setTimeout(function(){
336
                scope.wd.deleteItem(id)
336
                scope.wd.deleteItem(id, location.reload, location)
337
337
            }, 0);
338
338
        }
339
339
        unsafeWindow.wdmgr_duplicate = function(id){
340
340
            setTimeout(function(){
341
                scope.wd.duplicateItem(id)
341
                scope.wd.duplicateItem(id, location.reload, location)
342
342
            }, 0);
343
343
        }
344
344