|
@@ -183,72 +183,7 @@
|
|
|
|
|
|
@push('js')
|
|
|
|
|
|
-<script>
|
|
|
- function fetch_sub_content(selector, url, args=null){
|
|
|
-
|
|
|
- var config={
|
|
|
- spinner: true
|
|
|
- }
|
|
|
-
|
|
|
- if(typeof args=='object'){
|
|
|
- config=Object.assign(config, args);
|
|
|
- }
|
|
|
-
|
|
|
- if(config.spinner){
|
|
|
-
|
|
|
- $(selector).waitMe({
|
|
|
- effect: 'facebook',
|
|
|
- text: 'Please! Wait ...'
|
|
|
- });
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- $(selector).load(url, null, function(){
|
|
|
- $(selector).waitMe('hide');
|
|
|
- if(typeof args=='function') args();
|
|
|
- });
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- function wait_me(selector, config=null){
|
|
|
-
|
|
|
- if(config){
|
|
|
-
|
|
|
- selector.waitMe(config);
|
|
|
-
|
|
|
- }else{
|
|
|
-
|
|
|
- selector.waitMe({
|
|
|
- effect: 'facebook',
|
|
|
- //color: '#000',
|
|
|
- text: 'Please! Wait ...'
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function pop_up_msg(msg='No message specified', type='success', callback=null){
|
|
|
- new Noty({
|
|
|
- theme:'sunset',
|
|
|
- text: msg,
|
|
|
- type: type,
|
|
|
- timeout:1500,
|
|
|
- callbacks:{
|
|
|
- afterClose: callback
|
|
|
- }
|
|
|
- }).show();
|
|
|
- }
|
|
|
-
|
|
|
- function err_msg(err){
|
|
|
-
|
|
|
- var msg="Request failed to process, try again later.";
|
|
|
-
|
|
|
- if(err.responseJSON && err.responseJSON.msg){
|
|
|
- msg=err.responseJSON.msg;
|
|
|
- }
|
|
|
-
|
|
|
- return msg;
|
|
|
-
|
|
|
- }
|
|
|
+<script>
|
|
|
|
|
|
$(function(){
|
|
|
$('.search_button').on('click', function(){
|