PHP Classes

File: engine/modules/core/list/js/list.js

Recommend this page to a friend!
  Classes of Aldo Tripiciano   Quanta CMS   engine/modules/core/list/js/list.js   Download  
File: engine/modules/core/list/js/list.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Quanta CMS
Manage content that works without a database
Author: By
Last change:
Date: 5 years ago
Size: 822 bytes
 

Contents

Class file image Download
var refreshLists = function () { $('.list').each(function () { var rel = $(this).attr('rel'); var tpl = $(this).attr('tpl'); var list = $(this); if (rel != undefined) { $(this).find('a.link').off('click').on('click', function (e) { list.find('.link-active').removeClass('link-active'); if (rel == '_self') { top.location.href = '/' + $(this).attr('href'); } else if ($(this).attr('href') != '_empty') { openAjax($(this).attr('href'), rel, undefined, tpl); $(this).addClass('link-active'); } e.preventDefault(); }); } }); }; $(document).bind('refresh', function () { refreshLists(); });