PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
helpSystem
/
modules
/
admin
/
assets
/
js
$( document ).ready(function() { _TopicInitializePageBuilder(); }); function _TopicInitializePageBuilder() { _TopicConfigureEvents(); }; function _TopicConfigureEvents() { _TopicBasicEvents(); }; function _TopicBasicEvents(){ _TopiconChangeEvents(); _TopiconReadyEvents(); }; function _TopiconReadyEvents(){ _TopicajaxGetTopics(); }; function _TopiconChangeEvents(){ //alert($("#TopicForm_section").val()); var __this = this; $("#TopicForm_section").change(function(){ var $sectionId = __this._getSectionId(); _TopicajaxGetTopics(); }); $(".topicAddButton").click(function(e){ e.preventDefault(); $("#TopicForm_section").hide(); $("#TopicForm_section").val(""); $(".topicAddButton").hide(); $("#TopicForm_sectionText").show(); $(".revertButton").show(); _TopicajaxGetTopics(); }); $(".revertButton").click(function(){ $("#TopicForm_sectionText").hide(); $("#TopicForm_sectionText").val(""); $("#TopicForm_section_em_").html(""); $("#SectionText_Name_em_").html(""); $("#TopicForm_section").show(); $(".topicAddButton").show(); $(".revertButton").hide(); }); if($("#TopicForm_sectionText").val()) { $("#TopicForm_section").hide(); $("#TopicForm_section").val(""); $(".topicAddButton").hide(); $("#TopicForm_sectionText").show(); $(".revertButton").show(); _TopicajaxGetTopics(); } }; function _TopicajaxGetTopics(){ var $sectionId = _getSectionId(); var __this = this; $.ajax({ url: _getTopicAdminUrl(), data: { 'sectionId':$sectionId }, type: 'POST', async:true, dataType: 'html', cache: false, success: function(responseHTML) { _TopicsetParentHtml(responseHTML); }, error: function($error,$errorCode){ alert("error"); } }); } function _TopicsetParentHtml(responseHTML){ $("#TopicForm_parent").html(responseHTML); }; function ValidateSection(form, data, hasError){ if(!hasError){ var $sectionId = _getSectionId(); var $sectionText=_getSectionText(); if($sectionId =="" && $sectionText==""){ $("#TopicForm_section_em_").html("Section canot be blank"); $("#TopicForm_section_em_").show(); return false; } else{ $("#TopicForm_section_em_").hide(); disableSubmit(); return true; } } } function _getTopicAdminUrl(){ return $("#topicAdminUrl").val(); }; function _getSectionId(){ return $("#TopicForm_section").val(); }; function _getSectionText(){ return $("#TopicForm_sectionText").val(); }; function _getTopicId(){ return $("#parentId").val(); };
[+]
..
[-] topic.treeview.js
[edit]
[-] jquery.jstree.js
[edit]
[+]
themes
[-] topic.add.js
[edit]