diff --git a/components/market/dialog.php b/components/market/dialog.php index 09aa12f..47885f4 100644 --- a/components/market/dialog.php +++ b/components/market/dialog.php @@ -34,7 +34,7 @@ "> -
+
+ +
+ diff --git a/components/market/init.js b/components/market/init.js index aebc3a2..8828330 100644 --- a/components/market/init.js +++ b/components/market/init.js @@ -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); } }); } diff --git a/themes/default/market/screen.css b/themes/default/market/screen.css new file mode 100644 index 0000000..4a8af56 --- /dev/null +++ b/themes/default/market/screen.css @@ -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; +} \ No newline at end of file