|
@@ -39,13 +39,14 @@ MaterioFlag = function(){
|
|
};
|
|
};
|
|
|
|
|
|
function onResultsUpdated(event){
|
|
function onResultsUpdated(event){
|
|
- //trace('MaterioFlag :: onResultsUpdated', event);
|
|
|
|
|
|
+ trace('MaterioFlag :: onResultsUpdated', event);
|
|
|
|
+ ajaxifyTitleTools();
|
|
ajaxifyLinks(event.container);
|
|
ajaxifyLinks(event.container);
|
|
};
|
|
};
|
|
|
|
|
|
function buildBlocks(activename){
|
|
function buildBlocks(activename){
|
|
//trace('MaterioFlag :: buildBlocks | activename', activename);
|
|
//trace('MaterioFlag :: buildBlocks | activename', activename);
|
|
-
|
|
|
|
|
|
+ // TODO: the bookmark thing is obselete as free registrered user does not exist anymore
|
|
if($('#block-materio-flag-materio-flag-mybookmarks').length){
|
|
if($('#block-materio-flag-materio-flag-mybookmarks').length){
|
|
var type = 'bookmarks';
|
|
var type = 'bookmarks';
|
|
var block = '#block-materio-flag-materio-flag-mybookmarks';
|
|
var block = '#block-materio-flag-materio-flag-mybookmarks';
|
|
@@ -78,10 +79,7 @@ MaterioFlag = function(){
|
|
$('<span class="preview"><i class="fi-eye"></i></span>').attr('name', name).insertAfter($this).bind('click', onClickShowPreview);
|
|
$('<span class="preview"><i class="fi-eye"></i></span>').attr('name', name).insertAfter($this).bind('click', onClickShowPreview);
|
|
});
|
|
});
|
|
|
|
|
|
- $('a.edit-list:not(.ajax-processed)', '#block-materio-flag-materio-flag-mylists-nav')
|
|
|
|
- .bind('click', onCLickEditList)
|
|
|
|
- .addClass('ajax-processed');
|
|
|
|
-
|
|
|
|
|
|
+ ajaxifyTitleTools();
|
|
|
|
|
|
$('a.flag-lists-create:not(.ajax-processed)', '#block-materio-flag-materio-flag-mylists-nav')
|
|
$('a.flag-lists-create:not(.ajax-processed)', '#block-materio-flag-materio-flag-mylists-nav')
|
|
.bind('click', onClickCreatLink)
|
|
.bind('click', onClickCreatLink)
|
|
@@ -118,8 +116,14 @@ MaterioFlag = function(){
|
|
showPreview(activename, block);
|
|
showPreview(activename, block);
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ function ajaxifyTitleTools(){
|
|
|
|
+ $('a.edit-list:not(.ajax-processed)', '#block-materio-flag-materio-flag-mylists-nav, #block-materio-page-title-materio-page-title')
|
|
|
|
+ .bind('click', onCLickEditList)
|
|
|
|
+ .addClass('ajax-processed');
|
|
|
|
+ };
|
|
|
|
+
|
|
function refreshBlocks(name){
|
|
function refreshBlocks(name){
|
|
- //trace('MaterioFlag :: refreshBlocks | name', name);
|
|
|
|
|
|
+ trace('MaterioFlag :: refreshBlocks | name', name);
|
|
if($('#block-materio-flag-materio-flag-mybookmarks').length){
|
|
if($('#block-materio-flag-materio-flag-mybookmarks').length){
|
|
var type = 'bookmarks';
|
|
var type = 'bookmarks';
|
|
}else if($('#block-materio-flag-materio-flag-mylists').length){
|
|
}else if($('#block-materio-flag-materio-flag-mylists').length){
|