Initial commit
This commit is contained in:
28
static/js/store_admin.js
Normal file
28
static/js/store_admin.js
Normal file
@@ -0,0 +1,28 @@
|
||||
var _loading = true;
|
||||
|
||||
function hookupPageStorePageAdmin() {
|
||||
_loading = false;
|
||||
|
||||
hookupBtnProductNew();
|
||||
hookupBtnPriceNew();
|
||||
}
|
||||
|
||||
function hookupBtnProductNew() {
|
||||
let btnProductNew = $(idBtnProductNew);
|
||||
btnProductNew.removeClass(flagInitialised);
|
||||
initialiseEventHandler(idBtnProductNew, flagInitialised, function() {
|
||||
btnProductNew.on("click", function(event) {
|
||||
goToPage(hashPageStoreProductNew);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function hookupBtnPriceNew() {
|
||||
let btnPriceNew = $(idBtnPriceNew);
|
||||
btnPriceNew.removeClass(flagInitialised);
|
||||
initialiseEventHandler(idBtnPriceNew, flagInitialised, function() {
|
||||
btnPriceNew.on("click", function(event) {
|
||||
goToPage(hashPageStorePriceNew);
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user