Merge pull request #1436 from stkenny/db-extension-js-error
Javascript error on project page from database extension
This commit is contained in:
commit
73395c2695
@ -27,32 +27,6 @@
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
$(function(){
|
||||
$.contextMenu({
|
||||
selector: '.context-menu-one',
|
||||
trigger: 'left',
|
||||
build: function($trigger, e) {
|
||||
|
||||
return {
|
||||
callback: function(key, options) {
|
||||
var m = "clicked: " + key;
|
||||
DatabaseExtension.handleSavedConnectionClicked(key, $(this).text());
|
||||
|
||||
},
|
||||
|
||||
items: {
|
||||
"edit": {name: " Edit "},
|
||||
"sep0": "",
|
||||
"delete": {name: " Delete "},
|
||||
"sep1": "---------",
|
||||
"connect": {name: " Connect "},
|
||||
"dummy": {name: "", icon: ""}
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var DatabaseExtension = {};
|
||||
|
||||
DatabaseExtension.currentConnection = {};
|
||||
|
@ -27,6 +27,32 @@
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
$(function(){
|
||||
$.contextMenu({
|
||||
selector: '.context-menu-one',
|
||||
trigger: 'left',
|
||||
build: function($trigger, e) {
|
||||
|
||||
return {
|
||||
callback: function(key, options) {
|
||||
var m = "clicked: " + key;
|
||||
DatabaseExtension.handleSavedConnectionClicked(key, $(this).text());
|
||||
|
||||
},
|
||||
|
||||
items: {
|
||||
"edit": {name: " Edit "},
|
||||
"sep0": "",
|
||||
"delete": {name: " Delete "},
|
||||
"sep1": "---------",
|
||||
"connect": {name: " Connect "},
|
||||
"dummy": {name: "", icon: ""}
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Refine.DatabaseSourceUI = function(controller) {
|
||||
this._controller = controller;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user