mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
Move window.alert() calls to bootstrap modals. Also log errors to console.
* Move window.alert() calls to bootstrap modals. Also log errors that occur to console. * move misc modal to basic template so it's available on all pages.
This commit is contained in:
committed by
Maxime Beauchemin
parent
9c1af66ba4
commit
92f73b67ca
@@ -1,5 +1,7 @@
|
||||
var $ = window.$ = require('jquery');
|
||||
var jQuery = window.jQuery = $;
|
||||
var showModal = require('./modules/utils.js').showModal;
|
||||
|
||||
require('select2');
|
||||
require('datatables');
|
||||
require('bootstrap');
|
||||
@@ -41,7 +43,10 @@ $(document).ready(function () {
|
||||
$("#dbtable").on("change", showTableMetadata);
|
||||
showTableMetadata();
|
||||
$("#create_view").click(function () {
|
||||
alert("Not implemented");
|
||||
showModal({
|
||||
title: "Error",
|
||||
body: "Sorry, this feature is not yet implemented"
|
||||
});
|
||||
});
|
||||
$(".sqlcontent").show();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user