소스 검색

Made desktop more responsive, and other fixes in method routing

version-14
Rushabh Mehta 11 년 전
부모
커밋
e43b670d02
6개의 변경된 파일48개의 추가작업 그리고 29개의 파일을 삭제
  1. +1
    -1
      webnotes/core/page/applications/applications.js
  2. +31
    -12
      webnotes/core/page/desktop/desktop.css
  3. +2
    -2
      webnotes/core/page/messages/messages.js
  4. +9
    -9
      webnotes/core/page/permission_manager/permission_manager.js
  5. +4
    -4
      webnotes/core/page/user_properties/user_properties.js
  6. +1
    -1
      webnotes/installer.py

+ 1
- 1
webnotes/core/page/applications/applications.js 파일 보기

@@ -52,7 +52,7 @@ wn.pages['applications'].onload = function(wrapper) {
if(!r.exc) {
msgprint("<i class='icon-ok'></i> Installed");
msgprint("Refreshing...");
setTimeout(window.location.reload, 2000)
setTimeout(function() { window.location.reload() }, 2000)
}
}
})


+ 31
- 12
webnotes/core/page/desktop/desktop.css 파일 보기

@@ -1,23 +1,23 @@
.case-border {
border-radius: 5px;
padding: 20px;
display: inline-block;
/* box-shadow: 0 0 4px 1px black;
-moz-box-shadow: 0 0 4px 1px black;
-webkit-box-shadow: 0 0 4px 1px black;
-o-box-shadow: 0 0 4px 1px black;
*/ margin: auto;
text-align: center;
#icon-grid {
padding-bottom: 30px;
}

.case-wrapper {
position: relative;
margin: 24px;
margin: 12px;
float: left;
width: 100px;
height: 100px;
}

.case-border {
border-radius: 5px;
padding: 20px;
display: inline-block;
margin: auto;
text-align: center;
}

.case-wrapper i {
font-size: 32px;
min-width: 32px;
@@ -27,11 +27,30 @@

.case-label {
color: white;
padding-top: 10px;
padding-top: 5px;
text-align: center;
text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);
}


@media (max-width: 768px) {
.case-wrapper {
margin: 12px;
width: 70px;
height: 80px;
}
.case-border {
padding: 12px;
}
.case-label {
padding-top: 2px;
font-size: 85%;
}
}




/* Hover and click effects */
.case-border:hover, .hover-effect {
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);


+ 2
- 2
webnotes/core/page/messages/messages.js 파일 보기

@@ -47,7 +47,7 @@ wn.core.pages.messages = Class.extend({
var txt = $('#post-message textarea').val();
if(txt) {
return wn.call({
module:'core',
module: 'webnotes.core',
page:'messages',
method:'post',
args: {
@@ -159,7 +159,7 @@ wn.core.pages.messages = Class.extend({
show_active_users: function() {
var me = this;
return wn.call({
module:'core',
module:'webnotes.core',
page:'messages',
method:'get_active_users',
callback: function(r,rt) {


+ 9
- 9
webnotes/core/page/permission_manager/permission_manager.js 파일 보기

@@ -70,7 +70,7 @@ wn.PermissionEngine = Class.extend({
me.make_reset_button();
return wn.call({
module:"core",
module:"webnotes.core",
page:"permission_manager",
method: "get_roles_and_doctypes",
callback: function(r) {
@@ -116,7 +116,7 @@ wn.PermissionEngine = Class.extend({
var doctype = this.doctype_select.val();
if(doctype) {
wn.call({
module:"core",
module:"webnotes.core",
page:"permission_manager",
method: "get_standard_permissions",
args: {doctype: doctype},
@@ -132,7 +132,7 @@ wn.PermissionEngine = Class.extend({
me.reset_button = me.wrapper.appframe.set_title_right("Reset Permissions", function() {
if(wn.confirm("Reset Permissions for " + me.get_doctype() + "?", function() {
return wn.call({
module:"core",
module:"webnotes.core",
page:"permission_manager",
method:"reset",
args: {
@@ -163,7 +163,7 @@ wn.PermissionEngine = Class.extend({
}
// get permissions
wn.call({
module: "core",
module: "webnotes.core",
page: "permission_manager",
method: "get_permissions",
args: {
@@ -265,7 +265,7 @@ wn.PermissionEngine = Class.extend({
.click(function() {
var role = $(this).attr("data-role");
wn.call({
module: "core",
module: "webnotes.core",
page: "permission_manager",
method: "get_users_with_role",
args: {
@@ -305,7 +305,7 @@ wn.PermissionEngine = Class.extend({
.attr("data-doctype", d.parent)
.click(function() {
return wn.call({
module: "core",
module: "webnotes.core",
page: "permission_manager",
method: "remove",
args: {
@@ -333,7 +333,7 @@ wn.PermissionEngine = Class.extend({
value: chk.prop("checked") ? 1 : 0
}
return wn.call({
module: "core",
module: "webnotes.core",
page: "permission_manager",
method: "update",
args: args,
@@ -381,7 +381,7 @@ wn.PermissionEngine = Class.extend({
return;
}
wn.call({
module: "core",
module: "webnotes.core",
page: "permission_manager",
method: "add",
args: args,
@@ -425,7 +425,7 @@ wn.PermissionEngine = Class.extend({
var match_value = $(dialog.wrapper).find(":radio:checked").val();
var perm = me.get_perm($(this).attr('data-name'))
return wn.call({
module: "core",
module: "webnotes.core",
page: "permission_manager",
method: "update_match",
args: {


+ 4
- 4
webnotes/core/page/user_properties/user_properties.js 파일 보기

@@ -35,7 +35,7 @@ wn.UserProperties = Class.extend({
make: function() {
var me = this;
return wn.call({
module:"core",
module:"webnotes.core",
page:"user_properties",
method: "get_users_and_links",
callback: function(r) {
@@ -130,7 +130,7 @@ wn.UserProperties = Class.extend({
}
// get permissions
return wn.call({
module: "core",
module: "webnotes.core",
page: "user_properties",
method: "get_properties",
args: {
@@ -179,7 +179,7 @@ wn.UserProperties = Class.extend({
.attr("data-defvalue", d.defvalue)
.click(function() {
return wn.call({
module: "core",
module: "webnotes.core",
page: "user_properties",
method: "remove",
args: {
@@ -241,7 +241,7 @@ wn.UserProperties = Class.extend({
return;
}
wn.call({
module: "core",
module: "webnotes.core",
page: "user_properties",
method: "add",
args: args,


+ 1
- 1
webnotes/installer.py 파일 보기

@@ -96,7 +96,7 @@ def install_app(name, verbose=False):
return
if name != "webnotes":
webnotes.check_admin_or_system_manager()
webnotes.only_for("System Manager")

for before_install in app_hooks.before_install or []:
webnotes.get_attr(before_install)()


불러오는 중...
취소
저장