*
*/
-/* global moment */
+/* global moment, oc_appconfig, oc_config */
(function() {
if (!OC.Share) {
*
*/
-/* global moment */
+/* global moment, Handlebars */
(function() {
if (!OC.Share) {
$target.tooltip('hide');
$target.removeClass('error');
- expiration = moment($target.val(), 'DD-MM-YYYY').format('YYYY-MM-DD');
+ var expiration = moment($target.val(), 'DD-MM-YYYY').format('YYYY-MM-DD');
this.model.get('linkShare').expiration = expiration;
this.model.saveLinkShare({
expiration: expiration
*
*/
+/* globals Clipboard, Handlebars */
+
(function() {
if (!OC.Share) {
OC.Share = {};
var clipboard = new Clipboard('.clipboardButton');
clipboard.on('success', function(e) {
- $input = $(e.trigger);
+ var $input = $(e.trigger);
$input.tooltip({placement: 'bottom', trigger: 'manual', title: t('core', 'Copied!')});
$input.tooltip('show');
_.delay(function() {
}, 3000);
});
clipboard.on('error', function (e) {
- $input = $(e.trigger);
+ var $input = $(e.trigger);
var actionMsg = '';
if (/iPhone|iPad/i.test(navigator.userAgent)) {
actionMsg = t('core', 'Not supported!');
},
onPasswordKeyUp: function(event) {
- if(event.keyCode == 13) {
+ if(event.keyCode === 13) {
this.onPasswordEntered();
}
},
*
*/
+/* globals escapeHTML, Handlebars */
+
(function() {
if (!OC.Share) {
OC.Share = {};
fetch: 'getShareWithEmail',
search: search.term
}, function(result) {
- if (result.status == 'success' && result.data.length > 0) {
+ if (result.status === 'success' && result.data.length > 0) {
response(result.data);
}
});
*
*/
+/* globals Handlebars */
+
(function() {
if (!OC.Share) {
OC.Share = {};
*
*/
+/* globals Handlebars */
+
(function() {
if (!OC.Share) {
OC.Share = {};
var $element = $(event.target);
var $li = $element.closest('li');
var shareId = $li.data('share-id');
- var shareType = $li.data('share-type');
- var shareWith = $li.attr('data-share-with');
// adjust checkbox states
var $checkboxes = $('.permissions', $li).not('input[name="edit"]').not('input[name="share"]');
*
*/
+/* globals Handlebars */
+
(function() {
if(!OC.Share) {
OC.Share = {};
function (result) {
$loading.addClass('hidden');
$loading.removeClass('inlineblock');
- if (result.ocs.meta.statuscode == 100) {
+ if (result.ocs.meta.statuscode === 100) {
var users = result.ocs.data.exact.users.concat(result.ocs.data.users);
var groups = result.ocs.data.exact.groups.concat(result.ocs.data.groups);
var remotes = result.ocs.data.exact.remotes.concat(result.ocs.data.remotes);
if (this.configModel.get('isRemoteShareAllowed')) {
sharePlaceholder = t('core', 'Share with users, groups or remote users…');
} else {
- sharePlaceholder = t('core', 'Share with users or groups…')
+ sharePlaceholder = t('core', 'Share with users or groups…');
}
} else if (this.configModel.get('isRemoteShareAllowed')) {
sharePlaceholder = t('core', 'Share with users or remote users…');