replaced ch.js files by min.js"

This commit is contained in:
Bachir Soussi Chiadmi
2013-12-05 15:29:25 +01:00
parent 9af55b03bd
commit 7230dafd5f
5 changed files with 762 additions and 5 deletions

44
js/materio_page_title.min.js vendored Normal file
View File

@@ -0,0 +1,44 @@
// @codekit-prepend "gui.js"
// @koala-prepend "gui.js"
(function($) {
MaterioPageTitle = function(){
function init(){
$(document)
.bind('materio-page-title-refresh-block', onRefreshBlock)
.bind('list-edited', onListEdited);
};
function onRefreshBlock(event){
trace('MaterioPageTitle :: onRefreshBlock', event);
// var url = Drupal.settings.basePath+Drupal.settings.pathPrefix+'materio_page_title/refresh/block';
// $.getJSON(url, function(json){
// trace('page title json', json);
// $('#block-materio-page-title-materio-page-title').replaceWith(json.block);
// });
if(typeof event.title !== 'undefined')
$('#block-materio-page-title-materio-page-title h1').html(event.title);
};
function onListEdited(event){
trace('MaterioPageTitle :: onListEdited', event);
// this is for refreshing page title when list title was just edited AND this list is the cirreunt list
if($("#materio-page-title ."+event.name).length)
$('a.open-list.'+event.name).eq(0).trigger('click');
};
init();
};
$(document).ready(function() {
var materiopagetitle = new MaterioPageTitle();
});
})(jQuery);