This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sugar_config['additional_js_config']['max_idle_time'] = 1800; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Idle time logout | |
* Author: Shijin Krishna | |
* Date 11/29/2016 | |
* | |
* */ | |
(function(app){ | |
app.events.on('app:sync:complete',function(){ | |
$(document).idleTimeout({ | |
redirectUrl:'#'+Backbone.history.getFragment(), //redirect url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.store = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
(function (global){ | |
"use strict";module.exports=function(){function e(){try{return o in n&&n[o]}catch(e){return!1}}var t,r={},n="undefined"!=typeof window?window:global,i=n.docum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(e){e.fn.idleTimeout=function(i){var t,o,n,l,a,s,r,d,c,u,g,m,v,f,T,p,y,b,L,w,h={redirectUrl:"/logout",idleTimeLimit:1200,idleCheckHeartbeat:2,customCallback:!1,activityEvents:"click keypress scroll wheel mousewheel mousemove",enableDialog:!0,dialogDisplayLimit:180,dialogTitle:"Session Expiration Warning",dialogText:"Because you have been inactive, your session is about to expire.",dialogTimeRemaining:"Time remaining",dialogStayLoggedInButton:"Stay Logged In",dialogLogOutNowButton:"Log Out Now",errorAlertMessage:'Please disable "Private Mode", or upgrade to a modern browser. Or perhaps a dependent file missing. Please see: https://github.com/marcuswestin/store.js',sessionKeepAliveTimer:600,sessionKeepAliveUrl:window.location.href},A=e.extend(h,i),D=document.title;return this.logout=function(){store.set("idleTimerLoggedOut",!0)},o=function(){l=function(){e.get(A.sessionKeepAliveUrl),o()},a=setTimeout(l,1e3*A.sessionKeepAliveTimer)},n=function(){clearTimeout(a)},t=function(){e("body").on(A.activityEvent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$js_groupings[] = $sugar_grp_sidecar = array_merge($sugar_grp_sidecar, | |
array( | |
'custom/include/javascript/store.js' => 'include/javascript/sugar_sidecar.min.js', | |
'custom/include/javascript/idleTimeOutPlugin.js' => 'include/javascript/sugar_sidecar.min.js', | |
'custom/include/javascript/idleTimer.js' => 'include/javascript/sugar_sidecar.min.js', | |
) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
m - Module name. | |
e - End point name. | |
r - Object containing current record data. Eg: pass your current record id as {id:<current-recrod-id>} | |
p - Other parameters. Eg: limit of records,orderBy etc. | |
**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'emailLink' => false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var changedAttributes = model.changedAttributes(model.getSyncedAttributes()); | |
if (!_.isEmpty(changedAttributes)) { | |
//some attributes's value has changed | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model.revertAttributes(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mod_strings['LBL_READ'] = 'Read'; | |
$mod_strings['LBL_UNREAD'] = 'Unread'; | |
?> |
NewerOlder