diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-13 16:40:10 -0400 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-13 16:40:10 -0400 |
commit | afcb0aee40230c68dd99f5ea2501b7ba7e444560 (patch) | |
tree | 5ccd10e78128c70e71a36ca9080a652a7bd833d5 /core | |
parent | 02dc34320978bfbcb30dea34b87808837586bb65 (diff) | |
parent | b9f9228a22944184803a8835282862e468812c1d (diff) | |
download | nextcloud-server-afcb0aee40230c68dd99f5ea2501b7ba7e444560.tar.gz nextcloud-server-afcb0aee40230c68dd99f5ea2501b7ba7e444560.zip |
fix merge conflicts
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/appconfig.php | 2 | ||||
-rw-r--r-- | core/ajax/vcategories/delete.php | 2 | ||||
-rw-r--r-- | core/css/oc-vcategories.css | 7 | ||||
-rw-r--r-- | core/css/styles.css | 14 | ||||
-rw-r--r-- | core/js/config.js | 2 | ||||
-rw-r--r-- | core/js/js.js | 5 | ||||
-rw-r--r-- | core/js/oc-vcategories.js | 36 | ||||
-rw-r--r-- | core/templates/layout.user.php | 2 |
8 files changed, 35 insertions, 35 deletions
diff --git a/core/ajax/appconfig.php b/core/ajax/appconfig.php index 50984ac32b9..f815d710631 100644 --- a/core/ajax/appconfig.php +++ b/core/ajax/appconfig.php @@ -11,7 +11,7 @@ $action=isset($_POST['action'])?$_POST['action']:$_GET['action']; $result=false; switch($action){ case 'getValue': - $result=OC_Appconfig::getValue($_GET['app'],$_GET['key'],$_GET['default']); + $result=OC_Appconfig::getValue($_GET['app'],$_GET['key'],$_GET['defaultValue']); break; case 'setValue': $result=OC_Appconfig::setValue($_POST['app'],$_POST['key'],$_POST['value']); diff --git a/core/ajax/vcategories/delete.php b/core/ajax/vcategories/delete.php index 602ee1d74a4..75def433d30 100644 --- a/core/ajax/vcategories/delete.php +++ b/core/ajax/vcategories/delete.php @@ -17,7 +17,7 @@ function debug($msg) { require_once('../../../lib/base.php'); OC_JSON::checkLoggedIn(); -$app = isset($_GET['app'])?$_GET['app']:null; +$app = isset($_POST['app'])?$_POST['app']:null; $categories = isset($_POST['categories'])?$_POST['categories']:null; if(is_null($app)) { bailOut(OC_Contacts_App::$l10n->t('Application name not provided.')); diff --git a/core/css/oc-vcategories.css b/core/css/oc-vcategories.css deleted file mode 100644 index 68ff832bb06..00000000000 --- a/core/css/oc-vcategories.css +++ /dev/null @@ -1,7 +0,0 @@ -#categoryform .scrollarea { position: absolute; left: 10px; top: 10px; right: 10px; bottom: 50px; overflow: auto; border:1px solid #ddd; background: #f8f8f8; } -#categoryform .bottombuttons { position: absolute; bottom: 10px;} -#categoryform .bottombuttons * { float: left;} -/*#categorylist { border:1px solid #ddd;}*/ -#categorylist li { background:#f8f8f8; padding:.3em .8em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-transition:background-color 500ms; -moz-transition:background-color 500ms; -o-transition:background-color 500ms; transition:background-color 500ms; } -#categorylist li:hover, li:active { background:#eee; } -#category_addinput { width: 10em; } diff --git a/core/css/styles.css b/core/css/styles.css index e5380b1b6b0..5cc15f4b5b6 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -106,7 +106,7 @@ label.infield { cursor: text !important; } #notification { z-index:101; cursor:pointer; background-color:#fc4; border:0; padding:0 .7em .3em; display:none; position:fixed; left:50%; top:0; -moz-border-radius-bottomleft:1em; -webkit-border-bottom-left-radius:1em; border-bottom-left-radius:1em; -moz-border-radius-bottomright:1em; -webkit-border-bottom-right-radius:1em; border-bottom-right-radius:1em; } -.action, .selectedActions a, #logout { opacity:.3; -webkit-transition:opacity 500ms; -moz-transition:opacity 500ms; -o-transition:opacity 500ms; transition:opacity 500ms; } +.action, .selectedActions a, #logout { opacity:.5; -webkit-transition:opacity 500ms; -moz-transition:opacity 500ms; -o-transition:opacity 500ms; transition:opacity 500ms; } .action { width: 16px; height: 16px; } .action:hover, .selectedActions a:hover, #logout:hover { opacity:1; } @@ -132,9 +132,19 @@ li.error { width:640px; margin:4em auto; padding:1em 1em 1em 4em; background:#ff a.bookmarklet { background-color: #ddd; border:1px solid #ccc; padding: 5px;padding-top: 0px;padding-bottom: 2px; text-decoration: none; margin-top: 5px } -/* ---- DIALOGS ---- */ +/* ---- DIALOGS ---- */ #dirtree {width: 100%;} #filelist {height: 270px; overflow:scroll; background-color: white;} .filepicker_element_selected { background-color: lightblue;} .filepicker_loader {height: 120px; width: 100%; background-color: #333; opacity: 0.3; visibility: visible; position:absolute; top:0; left:0; text-align:center; padding-top: 150px;} + + +/* ---- CATEGORIES ---- */ +#categoryform .scrollarea { position: absolute; left: 10px; top: 10px; right: 10px; bottom: 50px; overflow: auto; border:1px solid #ddd; background: #f8f8f8; } +#categoryform .bottombuttons { position: absolute; bottom: 10px;} +#categoryform .bottombuttons * { float: left;} +/*#categorylist { border:1px solid #ddd;}*/ +#categorylist li { background:#f8f8f8; padding:.3em .8em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-transition:background-color 500ms; -moz-transition:background-color 500ms; -o-transition:background-color 500ms; transition:background-color 500ms; } +#categorylist li:hover, li:active { background:#eee; } +#category_addinput { width: 10em; } diff --git a/core/js/config.js b/core/js/config.js index 500fe072a64..11168f1c483 100644 --- a/core/js/config.js +++ b/core/js/config.js @@ -31,7 +31,7 @@ OC.AppConfig={ callback=defaultValue; defaultValue=null; } - OC.AppConfig.getCall('getValue',{app:app,key:key,default:defaultValue},callback); + OC.AppConfig.getCall('getValue',{app:app,key:key,defaultValue:defaultValue},callback); }, setValue:function(app,key,value){ OC.AppConfig.postCall('setValue',{app:app,key:key,value:value}); diff --git a/core/js/js.js b/core/js/js.js index 44b4f503b8c..7e8ca6164c6 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -413,9 +413,10 @@ $(document).ready(function(){ $('.jp-controls .jp-previous').tipsy({gravity:'nw', fade:true, live:true}); $('.jp-controls .jp-next').tipsy({gravity:'n', fade:true, live:true}); $('.password .action').tipsy({gravity:'se', fade:true, live:true}); - $('.file_upload_button_wrapper').tipsy({gravity:'w', fade:true}); - $('.selectedActions a.delete').tipsy({gravity: 'se', fade:true, live:true}); + $('.file_upload_button_wrapper').tipsy({gravity:'w', fade:true}); $('.selectedActions a').tipsy({gravity:'s', fade:true, live:true}); + $('a.delete').tipsy({gravity: 'se', fade:true, live:true}); + $('a.action').tipsy({gravity:'s', fade:true, live:true}); $('#headerSize').tipsy({gravity:'s', fade:true, live:true}); $('td.filesize').tipsy({gravity:'s', fade:true, live:true}); $('td .modified').tipsy({gravity:'s', fade:true, live:true}); diff --git a/core/js/oc-vcategories.js b/core/js/oc-vcategories.js index e3b1abba08d..4d8d010a36f 100644 --- a/core/js/oc-vcategories.js +++ b/core/js/oc-vcategories.js @@ -53,25 +53,21 @@ OCCategories={ } }); }, + _processDeleteResult:function(jsondata, status, xhr){ + if(jsondata.status == 'success'){ + OCCategories._update(jsondata.data.categories); + } else { + OC.dialogs.alert(jsondata.data.message, 'Error'); + } + }, doDelete:function(){ var categories = $('#categorylist').find('input[type="checkbox"]').serialize(); categories += '&app=' + OCCategories.app; console.log('OCCategories.delete: ' + categories); - $.post(OC.filePath(OCCategories.app, 'ajax', 'categories/delete.php'),categories,function(jsondata, status, xhr){ - if (status == 'error' && xhr.status == 404) { - $.post(OC.filePath('core', 'ajax', 'vcategories/delete.php'),categories,function(jsondata, status, xhr){ - if(jsondata.status == 'success'){ - OCCategories._update(jsondata.data.categories); - } else { - OC.dialogs.alert(jsondata.data.message, 'Error'); - } - }); - return; - } - if(jsondata.status == 'success'){ - OCCategories._update(jsondata.data.categories); - } else { - OC.dialogs.alert(jsondata.data.message, 'Error'); + $.post(OC.filePath(OCCategories.app, 'ajax', 'categories/delete.php'), categories, OCCategories._processDeleteResult) + .error(function(xhr){ + if (xhr.status == 404) { + $.post(OC.filePath('core', 'ajax', 'vcategories/delete.php'), categories, OCCategories._processDeleteResult); } }); }, @@ -88,16 +84,16 @@ OCCategories={ }, rescan:function(){ console.log('Categories.rescan'); - $.getJSON(OC.filePath(OCCategories.app, 'ajax', 'categories/rescan.php'),{},function(jsondata, status, xhr){ - if (status == 'error' && xhr.status == 404) { - OC.dialogs.alert('The required file ' + OC.filePath(Categories.app, 'ajax', 'categories/rescan.php') + ' is not installed!', 'Error'); - return; - } + $.getJSON(OC.filePath(OCCategories.app, 'ajax', 'categories/rescan.php'),function(jsondata, status, xhr){ if(jsondata.status == 'success'){ OCCategories._update(jsondata.data.categories); } else { OC.dialogs.alert(jsondata.data.message, 'Error'); } + }).error(function(xhr){ + if (xhr.status == 404) { + OC.dialogs.alert('The required file ' + OC.filePath(Categories.app, 'ajax', 'categories/rescan.php') + ' is not installed!', 'Error'); + } }); }, _update:function(categories){ diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index c048653cce9..85cf0899792 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -31,7 +31,7 @@ <form class="searchbox" action="#" method="post"> <input id="searchbox" class="svg" type="search" name="query" value="<?php if(isset($_POST['query'])){echo $_POST['query'];};?>" autocomplete="off" /> </form> - <a id="logout" href="<?php echo link_to('', 'index.php'); ?>?logout=true"><img class="svg" alt="<?php echo $l->t('Log out');?>" src="<?php echo image_path('', 'actions/logout.svg'); ?>" /></a> + <a id="logout" href="<?php echo link_to('', 'index.php'); ?>?logout=true"><img class="svg" alt="<?php echo $l->t('Log out');?>" title="<?php echo $l->t('Log out');?>" src="<?php echo image_path('', 'actions/logout.svg'); ?>" /></a> </div></header> <nav><div id="navigation"> |