mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-21 00:16:51 +01:00
added css & note popup
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<th valign="middle" width="30%" style="white-space:nowrap;"><input style="margin:0;display:inline" onkeyup="codiad.market.search(event, this.value)" value="<?php if(isset($_GET['query'])) echo $_GET['query'];?>" placeholder="<?php i18n("Press Enter to Search"); ?>"></th>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="height: 450px; width: 100%; overflow-y: auto; overflow-x: hidden;">
|
||||
<div class="wrapper">
|
||||
<table width="100%">
|
||||
<?php
|
||||
$marketplace = array();
|
||||
@@ -109,6 +109,9 @@
|
||||
?>
|
||||
</table></div>
|
||||
</div>
|
||||
<?php if($_GET['note'] != 'undefined' && $_GET['note'] == 'true') { ?>
|
||||
<div class="arrow_box"><?php i18n("Reload Codiad to Activate"); ?></div>
|
||||
<? } ?>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<th valign="middle" align="center" width="40px"><button style="white-space:nowrap;" class="icon-arrows-ccw bigger-icon" onclick="window.location.reload();return false;"></button></th>
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
// Open marketplace
|
||||
//////////////////////////////////////////////////////////////////
|
||||
|
||||
list: function(type) {
|
||||
list: function(type, note) {
|
||||
$('#modal-content form')
|
||||
.die('submit'); // Prevent form bubbling
|
||||
codiad.modal.load(800, this.dialog + '?action=list&type='+type);
|
||||
codiad.modal.load(800, this.dialog + '?action=list&type='+type+'¬e='+note);
|
||||
},
|
||||
|
||||
//////////////////////////////////////////////////////////////////
|
||||
@@ -39,7 +39,7 @@
|
||||
.die('submit'); // Prevent form bubbling
|
||||
var key= e.charCode || e.keyCode || e.which;
|
||||
if(query != '' && key==13) {
|
||||
codiad.modal.load(800, this.dialog + '?action=list&type=undefined&query='+query);
|
||||
codiad.modal.load(800, this.dialog + '?action=list¬e=false&type=undefined&query='+query);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
if (response == 'error') {
|
||||
codiad.message.error(response.message);
|
||||
}
|
||||
_this.list(page);
|
||||
_this.list(page, true);
|
||||
});
|
||||
} else {
|
||||
codiad.message.error('No Repository URL');
|
||||
@@ -79,7 +79,7 @@
|
||||
if (response == 'error') {
|
||||
codiad.message.error(response.message);
|
||||
}
|
||||
_this.list(page);
|
||||
_this.list(page, false);
|
||||
});
|
||||
},
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
if (response == 'error') {
|
||||
codiad.message.error(response.message);
|
||||
}
|
||||
_this.list(page);
|
||||
_this.list(page, false);
|
||||
});
|
||||
},
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
$.get(this.controller + '?action=activate&type=' + type + '&name=' + name, function(data) {
|
||||
var response = codiad.jsend.parse(data);
|
||||
if (response != 'error') {
|
||||
_this.list(page);
|
||||
_this.list(page, true);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -122,7 +122,7 @@
|
||||
$.get(this.controller + '?action=deactivate&type=' + type + '&name=' + name, function(data) {
|
||||
var response = codiad.jsend.parse(data);
|
||||
if (response != 'error') {
|
||||
_this.list(page);
|
||||
_this.list(page, true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
40
themes/default/market/screen.css
Normal file
40
themes/default/market/screen.css
Normal file
@@ -0,0 +1,40 @@
|
||||
.arrow_box {
|
||||
position: absolute;
|
||||
z-index: 10000;
|
||||
padding: 10px;
|
||||
bottom: 72px;
|
||||
left: -38px;
|
||||
background: #1a1a1a;
|
||||
border: 2px solid #fff;
|
||||
}
|
||||
.arrow_box:after, .arrow_box:before {
|
||||
top: 100%;
|
||||
border: solid transparent;
|
||||
content: " ";
|
||||
height: 0;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.arrow_box:after {
|
||||
border-color: rgba(26, 26, 26, 0);
|
||||
border-top-color: #1a1a1a;
|
||||
border-width: 20px;
|
||||
left: 50%;
|
||||
margin-left: -20px;
|
||||
}
|
||||
.arrow_box:before {
|
||||
border-color: rgba(255, 255, 255, 0);
|
||||
border-top-color: #fff;
|
||||
border-width: 23px;
|
||||
left: 50%;
|
||||
margin-left: -23px;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
height: 450px;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
Reference in New Issue
Block a user