Skip to content

Commit

Permalink
minify
Browse files Browse the repository at this point in the history
  • Loading branch information
mhzawadi committed Jan 1, 2025
1 parent 7428d54 commit 0512ed6
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 46 deletions.
1 change: 1 addition & 0 deletions src/public/css/custom.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/public/css/main.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ function edit_app(id, name, url, cat_public, icon, description, orderId, submit
document.getElementById("app_url").value = url;
document.getElementById("app_icon").value = icon;
document.getElementById("app_description").value = description;
$select = document.getElementById('isPublic');
const $select = document.getElementById("isPublic");
$select.value = cat_public;
document.getElementById('btn_app').textContent = 'Update Application';
document.getElementById("btn_app").textContent = "Update Application";
if( submit === true ){
document.getElementById("frm_app").submit();
}else{
openModal('application_modal');
openModal("application_modal");
}

}
Expand All @@ -26,5 +26,5 @@ function delete_application(id){
}

function app_sort(){
window.location.assign("/applications/order")
window.location.assign("/applications/order");
}
24 changes: 12 additions & 12 deletions src/public/js/bookmarks.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
function category_table(){
window.location.assign("/categories")
window.location.assign("/categories");
}
function category_edit(cat_id, cat_name, cat_public, orderId, submit = false){
document.getElementById("categoryID").value = cat_id;
document.getElementById("cat_name").value = cat_name;
document.getElementById("categoryOrder").value = orderId;
const $select = document.querySelector('#cat_isPublic');
const $select = document.querySelector("#cat_isPublic");
$select.value = cat_public;
document.getElementById('btn_cat').textContent = 'Update Category';
document.getElementById("btn_cat").textContent = "Update Category";
if( submit === true ){
document.getElementById("frm_category").submit();
}else{
openModal('category_modal')
openModal("category_modal");
}
}

Expand All @@ -25,27 +25,27 @@ function category_delete(category){
}

function new_bookmark(option, elementID){
$select = document.querySelector('#bk_categoryId');
$select.value = option
openModal(elementID)
$select = document.querySelector("#bk_categoryId");
$select.value = option;
openModal(elementID);
}

// This is to edit bookmarks
function edit_bookmark(id, name, url, cat_option, cat_public, icon, orderId, submit = false){
$select = document.getElementById('bk_categoryId');
$select.value = cat_option
$select = document.getElementById("bk_categoryId");
$select.value = cat_option;
document.getElementById("bookmarkID").value = id;
document.getElementById("bk_name").value = name;
document.getElementById("bk_url").value = url;
document.getElementById("bk_icon").value = icon;
document.getElementById("bookmarkOrder").value = orderId;
$select = document.getElementById('bk_isPublic');
const $select = document.getElementById("bk_isPublic");
$select.value = cat_public;
document.getElementById('btn_bk').textContent = 'Update Application';
document.getElementById("btn_bk").textContent = "Update Application";
if( submit === true ){
document.getElementById("frm_bookmark").submit();
}else{
openModal('bookmark_modal')
openModal("bookmark_modal");
}
}

Expand Down
Loading

0 comments on commit 0512ed6

Please sign in to comment.