1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

[icons] modification

This commit is contained in:
llj
2016-04-12 11:17:27 +08:00
parent b3d5cb07b7
commit 3f23a1685e
16 changed files with 85 additions and 57 deletions

View File

@@ -147,6 +147,8 @@ define([
Common.ajaxErrorHandler(xhr);
}
});
return false;
},
visitDir: function () { // todo
@@ -179,6 +181,8 @@ define([
} else {
popup.addClass('hide');
}
return false;
},
share: function() {

View File

@@ -67,6 +67,8 @@ define([
Common.feedback(err, 'error');
}
});
return false;
}
});

View File

@@ -23,7 +23,6 @@ define([
events: {
'click #group-settings-icon': 'toggleSettingsPanel',
'click #group-members-icon': 'toggleMembersPanel',
'click #group-wiki-icon': 'showGroupWiki',
'click #group-discussions-icon': 'toggleDiscussionsPanel',
'click .repo-create': 'createRepo',
'click .by-name': 'sortByName',
@@ -209,10 +208,6 @@ define([
return this.settingsView.toggle();
},
showGroupWiki: function() {
location.href = app.config.siteRoot + 'group/' + this.group.id + '/wiki/';
},
toggleMembersPanel: function() {
return this.membersView.toggle();
},

View File

@@ -55,6 +55,8 @@ define([
Common.ajaxErrorHandler(xhr);
}
});
return false;
}
});

View File

@@ -105,6 +105,8 @@ define([
}
});
});
return false;
},
share: function() {
@@ -119,6 +121,7 @@ define([
'obj_name': this.model.get('name')
};
new ShareView(options);
return false;
},
togglePopup: function() {

View File

@@ -29,7 +29,7 @@ define([
if (_this.collection.length == 0) {
$('#repos-shared-to-me table').hide();
$('#repos-shared-to-me .empty-tips').show();
};
}
};
$.ajax({
@@ -44,6 +44,8 @@ define([
dataType: 'json',
success: success_callback
});
return false;
},
render: function() {

View File

@@ -47,7 +47,7 @@ define([
'mods_available': app.pageOptions.user_mods_available,
'mods_enabled': mods_enabled
}));
form.modal();
form.modal({focus:false});
$('#simplemodal-container').css('height', 'auto');
$('.checkbox-orig', form).click(function() {
@@ -84,6 +84,8 @@ define([
});
return false;
});
return false;
},
setCurTab: function(cur_tab, options) {

View File

@@ -48,6 +48,8 @@ define([
Common.ajaxErrorHandler(xhr);
}
});
return false;
}
});

View File

@@ -526,6 +526,8 @@ define([
}
});
}
return false;
});
var _this = this;
@@ -622,6 +624,7 @@ define([
}
});
}
return false;
});
$(window).resize(function() {
var popup = $('#notice-popup');