⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addmessageform.js

📁 ProjectPier 源码 很好的项目管理程序
💻 JS
字号:
App.modules.addMessageForm = {  notify_companies: {},    /**   * Show and hide additional text editor   *   * @param object show_hide_link Expend / Collapse link   * @param string editor_id ID of editor   * @param string expend_lang Expend in selected language   * @param string collapse_lang Collapse in selected language   */  toggleAdditionalText: function(show_hide_link, editor_id, expand_lang, collapse_lang) {    editor = $(editor_id);    if(editor.style.display == 'block') {      editor.style.display = 'none';      show_hide_link.innerHTML = expand_lang;    } else {      editor.style.display = 'block';      show_hide_link.innerHTML = collapse_lang;    } // if  }, // toggleAdditionalText    /**   * Click on company checkbox in email notification box. If checkbox is checked   * all company members need to be checked. If not all members are unchecked   *   * @param integer company_id Company ID   */  emailNotifyClickCompany: function(company_id) {    var company_details = App.modules.addMessageForm.notify_companies['company_' + company_id]; // get company details from hash    if(!company_details) return;        var company_checkbox = $(company_details.checkbox_id);        for(var i = 0; i < company_details.users.length; i++) {      $(company_details.users[i].checkbox_id).checked = company_checkbox.checked;    } // if  }, // emailNotifyClickCompany    /**   * Click on company member. If all members are checked company should be checked too,   * false othervise   *   * @param integer company_id   * @param integer user_id   */  emailNotifyClickUser: function(company_id, user_id) {    var company_details = App.modules.addMessageForm.notify_companies['company_' + company_id]; // get company details from hash    if(!company_details) return;        // If we have all users checked check company box, else uncheck it... Simple :)    var all_users_checked = true;    for(var i = 0; i < company_details.users.length; i++) {      if(!$(company_details.users[i].checkbox_id).checked) all_users_checked = false;    } // if        $(company_details.checkbox_id).checked = all_users_checked;  } // emailNotifyClickUser  };

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -