diff --git a/build.json b/build.json index 61da74ca4f..6d576344ea 100644 --- a/build.json +++ b/build.json @@ -146,7 +146,6 @@ "lib/js/legacy/widgets/export_query.js", "lib/js/legacy/webpage/search.js", "lib/js/legacy/webpage/spinner.js", - "lib/js/legacy/webpage/error_console.js", "lib/js/legacy/webpage/loaders.js", "lib/js/legacy/wn/page_layout.js", "lib/js/legacy/wn/widgets/page_sidebar.js", diff --git a/js/legacy/webpage/error_console.js b/js/legacy/webpage/error_console.js deleted file mode 100644 index afc0c45b67..0000000000 --- a/js/legacy/webpage/error_console.js +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2012 Web Notes Technologies Pvt Ltd (http://erpnext.com) -// -// MIT License (MIT) -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the "Software"), -// to deal in the Software without restriction, including without limitation -// the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and/or sell copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF -// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE -// OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -// Error Console: - -var err_console; -var err_list = []; - -function errprint(t) { - if(!err_list)err_list = []; - err_list.push('
'+t+''); -} - -$(document).bind('startup', function() { - err_console = new Dialog(640, 480, 'Error Console') - err_console.make_body([ - ['HTML', 'Error List'] - ,['Button', 'Clear'] - ,['HTML', 'Error Report'] - ]); - var span = $a(err_console.widgets['Error Report'], 'span', 'link_type'); - span.innerHTML = 'Send Error Report'; - span.onclick = function() { - msg = prompt('How / where did you get the error [optional]') - var call_back = function(r, rt){ - err_console.hide(); - msgprint("Error Report Sent") - } - $c('webnotes.utils.send_error_report', {'err_msg': err_console.rows['Error List'].innerHTML, 'msg': msg}, call_back); - } - err_console.widgets['Clear'].onclick = function() { - err_list = []; - err_console.rows['Error List'].innerHTML = ''; - err_console.hide(); - } - err_console.onshow = function() { - err_console.rows['Error List'].innerHTML = '